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 two websites server1.mydomain.com and server2.mydomain.com. 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>
    ServerName mydefaultmultisite.mydomain.com
    ServerAlias server1.mydomain.com
    #ServerAlias ...

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

<VirtualHost *:80>
    ServerName server2.mydomain.com

    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.