[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] How do I create an Alias on a Raq3?



Hello!

I am having trouble setting up an Alias for my PHP includes on a Raq3.

If I put this line in my PHP code it works:
  <?php require('/home/sites/site1/includes/config.inc'); ?>

But when I change my code to read:
  <?php require('/includes/config.inc'); ?>

and add the following line to my Virtual Site in httpd.conf :
  Alias /includes/ /homes/sites/site1/includes/

and then restart apache it does not work.

"Fatal error: Failed opening required '/includes/config.inc' (include_path='.:/usr/local/lib/php') in /home/sites/site1/web/test.php on line 1"

I'm sure there is an easy fix but I can't seem to locate it.  Please help!

Thank you.