httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Arnold <carn...@electrichendrix.com>
Subject Re: [users@httpd] Virtual host Alias
Date Thu, 23 Jan 2014 09:57:26 GMT

> On Jan 23, 2014, at 4:44 AM, "Ole K├╝rstein" <okyrstein@gmail.com> wrote:
> 
> I have a problem. Dont know if it can be done.
> 
> It is this i can't get working:  www.example.com/test
> 
> can't get the /test working
> 
> ----example--- 
> 
> <VirtualHost *:80>
>     ServerName www.example.com
>     ServerAlias example.com 
>     DocumentRoot /www/htdocs
> </VirtualHost>
> 
> 
> <VirtualHost *:80>
>     ServerName www.test.example.com
>     ServerAlias test.example.com  example.com/test www.example.com/test
>     DocumentRoot /www/htdocs/test
> </VirtualHost>

If I understand your issue correctly, you will need to use either a rewrite or proxypass.
Due to what you are trying to do, I suggest a rewrite:

http://httpd.apache.org/docs/current/mod/mod_rewrite.html
Mime
View raw message