You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by stakys <st...@punktas.lt> on 2003/05/17 17:32:44 UTC

[users@httpd] Virtual hosts +alias

If i got virtual host smth like www.example.com and i need to set an alias
for it to access www.example.com/alias, how do i need to set it and where?
It must be in <VirtualHost> </VirtualHost> or not ?


---------------------------------------------------------------------
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


RE: [users@httpd] Virtual hosts +alias

Posted by Jeff Cohen <su...@gej-it.com>.
If you want your alias to be accessed for all the websites that you are
hosting then the answer is to put it outside the Vhost container.
If you want to have this alias ONLY for this Vhost, then you should put it
inside the Vhost container.
The syntax for Alias is:
In Unix/Linux:
Alias /alias /folder/you/aliasing
In Win32:
Alias /alias c:/folder/you/aliasing

All the best,
Jeff Cohen
Jeff@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!

> -----Original Message-----
> From: stakys [mailto:stakys@punktas.lt]
> Sent: Saturday, May 17, 2003 11:33 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] Virtual hosts +alias
> 
> If i got virtual host smth like www.example.com and i need to set an alias
> for it to access www.example.com/alias, how do i need to set it and where?
> It must be in <VirtualHost> </VirtualHost> or not ?
> 
> 
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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