Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 2 Virtual hosts set up like this...

vhosts/domain which is accessed at


vhosts/domainblog which is accessed at

Well the blog part is not setup yet, thats where I need help.

I know I can point the vhost for the blog to the proper directory, but then how can I make sure only the /blog and it's children folders work in the URL?

So how can I make sure the gets mapped to show vhosts/domainblog


Some more research shows this might work...

Alias /blog /var/www/blog
<Directory /var/www/blog>
    Options All
    AllowOverride All
    order allow,deny
    allow from all
share|improve this question
Is there a reason you want two vhosts for this? In most cases, I would put the blog into vhosts/domain/blog and don't bother with a second vhost. A second vhost would be useful if you would want to have and – Sven Jun 5 '13 at 16:33
@SvW I realize its not normal but it is what the client wants so I am trying to deliver if it's possible. Something to do with the backup plan and separating accounts for security. But they do not want the subdomian route which I realize would be much easier – JasonDavis Jun 5 '13 at 16:39

Your Answer


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

Browse other questions tagged or ask your own question.