Jongosi
Jongosi

Reputation: 2355

Apache Virtual Host Site Inaccessible

I'm setting up a dedicated server with multiple virtual hosts. The DNS is registered correctly...

$ ping mydomain.com
$ ping 8.8.8.8 (for example)

Both return the IP address as expected and it's correct.

The last line of my httpd.conf file is:

Include /etc/httpd/sites-enabled/

And the contents of mydomain.com.conf (in the above folder) are:

<VirtualHost 8.8.8.8:80>
    ServerName  mydomain.com
    ServerAdmin [email protected]

    # Indexes + Directory Root
    VirtualDocumentRoot /var/www/html/mydomain.com
    DocumentRoot /var/www/html/mydomain.com
    <Directory "/var/www/html/mydomain.com">
        Options FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

I suspected that the firewall was interfering with the access so I have disabled it with:

$ /etc/init.d/iptables stop

The server is running CentOS 6 64-bit with the latest LAMP stack.

Trying to go to the address http://www.mydomain.com/ or the IP address in browser both result in eventual time-out. Any suggestions would be helpful. Thank you!


EDIT 1

Running apachectl -S returns...

VirtualHost configuration:
8.8.8.8:80        mydomain.com (/etc/httpd/sites-enabled/mydomain.com.conf:6)
Syntax OK

EDIT 2

Following the request in Chrome's inspector returns a 204 header response.

204 No Content
    The server successfully processed the request, but is not returning any content.

Thanks.

Upvotes: 0

Views: 1164

Answers (1)

Jongosi
Jongosi

Reputation: 2355

SOLVED

My hosting provider had configured their hardware firewall to only allow traffic through on port 22 (SSH). Why on earth would I NOT want traffic on my WEBSITE.

$_hosting_provider = "In.sane";

Upvotes: 0

Related Questions