Apache: domains working fine, subdomains not working anymore

Posted by David Lawson on Server Fault See other posts from Server Fault or by David Lawson
Published on 2011-01-05T11:35:07Z Indexed on 2011/01/05 11:55 UTC
Read the original article Hit count: 438

Filed under:

Hi there,

I'm not sure when, but suddenly subdomains aren't working on my server.

e.g. www.davidlawson.co works, but david.lawson.co isn't working.

<VirtualHost 173.203.109.191:80>
        ServerAdmin [email protected]

        ServerName david.lawson.co
        ServerAlias davidlawson.co
        ServerAlias www.davidlawson.co

        DocumentRoot /var/www/lawson/david
        <Directory /var/www/lawson/david/>
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /var/log/apache2/lawson/david/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/lawson/david/access.log combined

</VirtualHost>

Any suggestions on how to debug this further, or what the problem might be?

© Server Fault or respective owner

Related posts about apache2