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

I have two websites and Server1 is part of a multi host Drupal installation located in dupal-7.2/, Server2 is a static website located in htdocs/myserver2.

How do I configure Apache to prevent it serving up the drupal site for both hosts?

share|improve this question

1 Answer 1

Assuming I understand the question correctly, you want something like:

<VirtualHost *:80>
    #ServerAlias ...

    DocumentRoot /var/www/drupal-7.2/
    <Directory /var/www/drupal-7.2>
        AllowOverride All

<VirtualHost *:80>

    DocumentRoot /var/www/htdocs/myserver2
share|improve this answer

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.