cesarcesar
Programmer
- Mar 5, 2003
- 30
Hello all. I have a question that pertains to Apache Aliases. I have read multiple upon multiple info on this and I am still confused. Guru wisdom is much appreciated. My question is, what is the difference between these two was of aliasing? I have added both my local (WIN-XP) and remote (LAMP) aliases. I am also wondering if my <Directory>...</Directory> attributes are correct.
1. Adding within .htaccess file like -
2. Adding into httpd.conf file like -
When using the httpd.conf method locally Apache will not start with <Directory>...</Directory>. If i comment it out Apache works but Aliasing does not.
Thanks
Cesar
1. Adding within .htaccess file like -
Code:
Local - Alias /EmpireManager C:/apache2triad/htdocs/EmpireManager
Remote - Alias /EmpireManager /var/[URL unfurl="true"]www/path/to/EmpireManager[/URL]
Code:
Local - Alias /EmpireManager/ "C:/apache2triad/htdocs/clients/EmpireManager/"
<Directory "C:/apache2triad/htdocs/clients/EmpireManager">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Remote - Alias /EmpireManager/ "/var/[URL unfurl="true"]www/path/to/EmpireManager/"[/URL]
<Directory "/var/[URL unfurl="true"]www/path/to/EmpireManager">[/URL]
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Thanks
Cesar