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

Filed under:


the following virtual host definition is working for an arbitrary url starting with "*"

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

How to rewrite this configuration so that it is applied only for url's starting with "*"

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

Any ideas?

© Pro Webmasters or respective owner

Related posts about apache

Related posts about virtualhost