Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following setup in my apache-config:



    DocumentRoot /var/www/page

    <Location "/blog">

      DocumentRoot /var/www/blog


    RailsBaseURI /
    RailsEnv development



Apache tells me, I am not allowed to have a second DocumentRoot. How can I make "" point to "/var/www/blog"?

I'm sure this is basic, but I just can't find the proper documentation online.

share|improve this question
up vote 1 down vote accepted


Alias /blog /var/www/blog

instead of the whole <Location> directive.

share|improve this answer
Hm yeah that seems to be the right approach. I also added a <Directory> section for that directory, however, the /blog request is still passed on to DocumentRoot directory. Am I missing something? – scrrr May 16 '10 at 15:19
Ah got it. Since the other URL was running Passenger I needed to add a "PassengerEnabled off" and "AllowOverride All" to the <Directory> referenced by Alias. Now it works. Thanks hop! – scrrr May 16 '10 at 15:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.