Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have 2 Virtual hosts set up like this...

vhosts/domain which is accessed at www.domain.com

and

vhosts/domainblog which is accessed at www.domain.com/blog

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 www.domain.com/blog gets mapped to show vhosts/domainblog


UPDATE

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
</Directory>
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 www.example.com and blog.example.com. –  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

 
discard

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

Browse other questions tagged or ask your own question.