All my Virtual Hosts are working except this one

August 27, 2014 1.5k views

Hey guys. I have the following setup
Ubuntu 12.04 LTS
LAMP Stack
4 Virtual Hosts

Currently all my virtual hosts are working except for one. It was working when I last checked it a couple days ago but since then it has stopped working. The DNS is working so I know it is some misconfiguration on my server. I have disabled and re-enabled the virtual host as well as creating a completely new virtual host with the same directory location. Nothing seems to work. I am posting my virtual host file and hopefully someone can show me what is going on.

<VirtualHost *:80>
    ServerAdmin *******@gmail.com
    ServerName ************.com
    ServerAlias www.************.com

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

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride All
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all

    ErrorLog ${APACHE_LOG_DIR}/error.log

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

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Order deny,allow
        Deny from all
        Allow from ::1/128


Thanks in advance for any help.

  • What do you mean by it's not "working"? Are you able to ping the domain? Do you get any errors when you restart apache? Is there anything in your apache error_log?

  • What is the error?
    Not open? or open other page that you have on server?
    If open other page, the problema ir the order of your vhots, and you have vhosts with the same ServerName or ServerAlias. Can you check this?

    And make the tests that our friend tell.
    Can you ping hostname?


Be the first one to answer this question.