Apache is Active, You are Unable to Connect to any Domain

February 7, 2023 / Apache Web server

In this article, we’ll explain why you did not connect to any domain while Apache is up and running.

What causes this?

While Apache is running and accessible on the server, and you can telnet to it locally, the domains appear to be disconnected from the outside.

Explanation –

You’ll run into difficulties with your portal, for-example

The IP address of domain's server can't be found, hence the site can't be reached.

This means that the Apache port would be closed.

Here, Apache can connect locally.

#telnet localhost 443
Trying ::1…
Connected to localhost.
Escape character is '^]'.
^]
telnet> quit
Connection closed
# telnet localhost 80
Trying ::1…
Connected to localhost.
Escape character is '^]'.
^]
telnet> quit
Connection closed

Not remotely:-

$ telnet 256.256.256.00 80
Trying 256.256.256.00 …
telnet: connect to address 256.256.256.00: Operation timed out
telnet: Unable to connect to remote host

Workaround

Check to see if the ports are being filtered.

nmap -P0 -Pn 208.43.129.162 -p80,443

If it says it’s closed or filtered, double-check the local firewall.

iptables -L -v -n

Server Using NAT:

iptables -L -v -n -t NAT

We hope that you now have a good understanding of Apache is active, but you are unable to connect to any domain. If you continue to have problems with the protocol outlined above, please contact the bodHOST Team for constructive assistance 24×7.

Also Read: How to Use WHM to Download a Domain’s Raw Apache Logs

Leave a Reply

Your email address will not be published. Required fields are marked *