0

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?

1 Answer 1

0

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>

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

    DocumentRoot /var/www/htdocs/myserver2
</VirtualHost>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .