Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alias Directory

Status
Not open for further replies.
May 22, 2002
63
0
0
GB
Hi,

I am trying to setup my apache installation so that when a php script attempts the following include: /var/
it actually looks at:

C:/Program Files/Apache Group/Apache/htdocs/glcorp_php_settings/settings.php

How can this be done?

I have tried adding this text at the documentroot and <IfModule mod_alias.c> parts of httpd.conf but its still not working?...

Alias /var/ "C:/Program Files/Apache Group/Apache/htdocs/glcorp_php_settings/settings.php"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "C:/Program Files/Apache Group/Apache/htdocs/glcorp_php_settings/settings.php">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Can anyone suggest anything I may be doing wrong?

Thanks,

Anders
 
try getting the file name from the Alias directive, Apache will take it as folder, not file.

Alias /var/ "C:/Program Files/Apache Group/Apache/htdocs/glcorp_php_settings/settings.php"

replaced by:

Alias /var/ "C:/Program Files/Apache Group/Apache/htdocs/glcorp_php_settings/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top