Apache2 Config - A little change

Giganews Newsgroups
Subject: Apache2 Config - A little change
Posted by:  AndyXS (Andy…@live.com)
Date: Thu, 14 Jun 2012

I need a little help with the latest apache v2. Basically my web server
has 1 IP address but hosts multiple websites. The configuration file
works just fine for this purpose as you will see from my config file below.

However when someone enters the servers IP address into their browser,
website1.com (in this example) is loading up. I do not want this to
happen. Instead I would like it to load a blank page, or a holding page
of some kind.

How do I do this?

NameVirtualHost 1.1.1.1

<VirtualHost 1.1.1.1>
        ServerAdmin webmaster@localhost
      ServerName website1.com
        DocumentRoot /home/web1/public_html/

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>

        <Directory /home/web1/public_html/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /home/web1/errors.log

        LogLevel warn

        CustomLog /home/web1/access.log combined
</VirtualHost>

Replies