httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugo Gomes <h...@lip.pt>
Subject Re: [users@httpd] Add a Alias
Date Tue, 04 Oct 2011 09:53:03 GMT
Hi, 

	Doesn't work, but what happens? http gives you an error?

	You can do a redirect.


	Regards,
	Hugo Gomes


On Tue, 2011-10-04 at 10:32 +0200, Josu Lazkano wrote:
> Hello, I am trying to configure a site, I want to add a Alias. This way
> it works well:
> 
> <VirtualHost *:80>
> 	ServerAdmin mymail
> 	ServerName site1.mydomain.com
> 	DocumentRoot /usr/share/site1
> 	<Directory />
> 		Options FollowSymLinks
> 		AllowOverride All
> 	</Directory>
> 
> 	<Directory /usr/share/site1/>
> 		Options Indexes FollowSymLinks MultiViews
> 		AllowOverride All
> 		Order allow,deny
> 		allow from all
> 	</Directory>
> 
> 	ErrorLog ${APACHE_LOG_DIR}/error.log
> 	LogLevel warn
> 	CustomLog ${APACHE_LOG_DIR}/access.log combined
> 
> </VirtualHost>
> 
> But I want to get my web from http://site1.domain.com and
> http://server/site1, so I add this line:
> 
>        Alias /site1 /usr/share/site1
> 
> But it doesn't work, how could I do that?
> 
> Thanks and best regards.
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

-- 
*************************************************
     Hugo Gomes                    
     LIP                                                    
     Av. Elias Garcia 14, 1ยบ                  
     1000-149 Lisboa, Portugal           
     Telef.:  +351- 217 998 587
     URL: http://www.lip.pt
     E-mail: hugo@lip.pt
*************************************************


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message