WHM works through Hostname but not IP
I am facing a weird problem. I am using WHM (latest build) and CentOS. CSF is present with default rules.
When we access WHM or cPanel through hostname it works fine, but if we try to access through IP address it does not.
The same thing on a browser - if we use the hostname in a browser it loads default cPanel page, but if we use IP address it shows "This site cannot be reached" and
same happens testing website e.g. name/~username works fine.
I checked iptables and find nothing.. tried turning CSF off but no luck..
any help is appreciated.
-
looks you have changed some settings in Tweak settings option of WHM, e.g. SSL redirection . please check on it. 0 -
Hi @trafficpullz While it may be useful to check tweak settings as suggested by @HostSane I tested very briefly and wasn't able to replicate an issue with mod_userdir when using the hostname opposed to the ip address. Can you let me know the following: 1. What is the ouput when you run the following curl -kvv http:///~$USER curl -kvv http://$HOSTNAME/~$USER
then the same with https you can remove any php/html output I am looking for the portion that looks similar to the following:[root@server ~]# curl -kvv http:///~$USER/ * About to connect() to port 80 (#0) * Trying ... * Connected to () port 80 (#0) > GET /~$USER/index.html HTTP/1.1 > User-Agent: curl/7.29.0 > Host: > Accept: */* > < HTTP/1.1 200 OK < Date: Tue, 27 Nov 2018 19:33:32 GMT < Server: Apache < Last-Modified: Mon, 12 Nov 2018 15:59:19 GMT < Accept-Ranges: bytes < Content-Length: 19 < Vary: User-Agent < Content-Type: text/html <
2. What are your mod_userdir settings right now? Please do not include any output that is personally identifying but include as much detail as possible. Thanks!0
Please sign in to leave a comment.
Comments
2 comments