How to configure virtual host to consider domain path in Apache

Posted by Scholle on Pro Webmasters See other posts from Pro Webmasters or by Scholle
Published on 2011-01-22T09:25:44Z Indexed on 2011/02/22 23:34 UTC
Read the original article Hit count: 655

Filed under:
|
|

Hi,

the following virtual host definition is working for an arbitrary url starting with "http://1.2.3.4:80/*"

<VirtualHost *:80>
     ServerName www.domain.com
     DocumentRoot /home/user/www/application/current/public
     <Directory /home/user/www/application/current/public>
         Order allow,deny
         Allow from all
     </Directory>
</VirtualHost>

How to rewrite this configuration so that it is applied only for url's starting with "http://1.2.3.4:80/user/*"

I tried "ServerPath /user", but it doesn't work...

Any ideas?

© Pro Webmasters or respective owner

Related posts about apache

Related posts about virtualhost