Second DocumentRoot for certain URLS
Posted
by scrr
on Server Fault
See other posts from Server Fault
or by scrr
Published on 2010-05-16T14:54:04Z
Indexed on
2010/05/16
15:00 UTC
Read the original article
Hit count: 363
Hello,
I have the following setup in my apache-config:
<VirtualHost 1.2.3.4:80> ServerName example.com:80 ServerAlias www.example.com DocumentRoot /var/www/page <Location "/blog"> DocumentRoot /var/www/blog </Location> RailsBaseURI / RailsEnv development </VirtualHost>
However,
Apache tells me, I am not allowed to have a second DocumentRoot
.
How can I make "www.example.com/blog" point to "/var/www/blog"?
I'm sure this is basic, but I just can't find the proper documentation online.
© Server Fault or respective owner