Re: Virtual host Alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Jan 23, 2014, at 4:44 AM, "Ole Kürstein" <okyrstein@xxxxxxxxx> 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

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux