ip not working , Domain not working

Make sure the server's firewall is not blocking port 80.
 
Is Apache running? Try "/etc/init.d/httpd restart" and "netstat -pln |grep :80".
If Apache is running, check the error logs (/var/log/httpd/error_log and /var/log/httpd/domains/sds2.krypt.com.error.log or /var/log/httpd/domains/krypt.com.sds2.error.log).
 
[Wed Mar 25 14:58:01 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 25 14:58:01 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Mar 25 14:58:01 2009] [notice] Digest: done
[Wed Mar 25 14:58:01 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Mar 25 20:56:10 2009] [error] [client 123.145.88.110] Directory index forbidden by Options directive: /var/www/html/
[Wed Mar 25 20:56:11 2009] [error] [client 123.145.88.110] File does not exist: /var/www/html/favicon.ico
[Wed Mar 25 20:56:14 2009] [error] [client 123.145.88.110] File does not exist: /var/www/html/favicon.ico
[Wed Mar 25 21:03:01 2009] [notice] caught SIGTERM, shutting down
[Wed Mar 25 21:03:01 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 25 21:03:01 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Mar 25 21:03:01 2009] [notice] Digest: done
[Wed Mar 25 21:03:01 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Mar 25 21:04:01 2009] [notice] caught SIGTERM, shutting down
[Wed Mar 25 21:04:01 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 25 21:04:01 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Mar 25 21:04:01 2009] [notice] Digest: done
[Wed Mar 25 21:04:01 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Mar 25 21:05:01 2009] [notice] caught SIGTERM, shutting down
[Wed Mar 25 21:05:01 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 25 21:05:01 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Mar 25 21:05:01 2009] [notice] Digest: done
[Wed Mar 25 21:05:01 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Mar 25 21:20:01 2009] [notice] caught SIGTERM, shutting down
[Thu Mar 26 00:02:02 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 26 00:02:02 2009] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 26 00:02:02 2009] [notice] Digest: done
[Thu Mar 26 00:02:02 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Thu Mar 26 00:03:35 2009] [error] [client 123.145.88.110] Directory index forbidden by Options directive: /var/www/html/
[Thu Mar 26 00:03:37 2009] [error] [client 123.145.88.110] File does not exist: /var/www/html/favicon.ico
[Thu Mar 26 00:03:40 2009] [error] [client 123.145.88.110] File does not exist: /var/www/html/favicon.ico
[Thu Mar 26 00:07:01 2009] [notice] caught SIGTERM, shutting down
 
I see no related error. Open http://174.139.24.146/ until it times out, then check /var/log/httpd/access_log or /var/log/httpd/homedir.log, if there is no line "GET / HTTP/1.1" it means that there is a firewall.
The fact that /etc/init.d/iptables states that "Firewall is stopped" doesn't mean that netfilter rules aren't set; just that the distribution built-in system for setting the rules is not activated. Run "iptables -nvL" instead.
If the netfilter table is empty, then you may have an hardware firewall activated or a wrong NAT configuration.
 
/var/log/httpd/access_log

123.145.88.110 - - [25/Mar/2009:20:56:10 -0400] "GET / HTTP/1.1" 403 5043 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
123.145.88.110 - - [25/Mar/2009:20:56:10 -0400] "GET /icons/powered_by_rh.png HTTP/1.1" 200 1213 "http://sds2.krypt.com/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
123.145.88.110 - - [25/Mar/2009:20:56:10 -0400] "GET /icons/apache_pb.gif HTTP/1.1" 200 2326 "http://sds2.krypt.com/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
123.145.88.110 - - [25/Mar/2009:20:56:11 -0400] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
123.145.88.110 - - [25/Mar/2009:20:56:14 -0400] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
123.145.88.110 - - [26/Mar/2009:00:03:35 -0400] "GET / HTTP/1.1" 403 5043 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
123.145.88.110 - - [26/Mar/2009:00:03:36 -0400] "GET /icons/apache_pb.gif HTTP/1.1" 200 2326 "http://174.139.24.146/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
123.145.88.110 - - [26/Mar/2009:00:03:36 -0400] "GET /icons/powered_by_rh.png HTTP/1.1" 200 1213 "http://174.139.24.146/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
123.145.88.110 - - [26/Mar/2009:00:03:37 -0400] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
123.145.88.110 - - [26/Mar/2009:00:03:40 -0400] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"

[root@sds2 ~]# iptables -nvL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
[root@sds2 ~]#
 
Back
Top