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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Do Apache Aliasing

Status
Not open for further replies.

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 -
Code:
	Local -		Alias /EmpireManager C:/apache2triad/htdocs/EmpireManager
	Remote -	Alias /EmpireManager /var/[URL unfurl="true"]www/path/to/EmpireManager[/URL]
2. Adding into httpd.conf file like -
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>
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top