Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am not able to access apache installed on the guest machine from the host. Details below. I saw the previous threads and worked on that, but still no luck. So am asking.

  • host: windows xp
  • guest : centos

In the guest, I could see apache running on and I am able ping this IP from windows(host) machine. But in the browser(host) I am not able to access this apache URL.

share|improve this question

closed as off-topic by Ward, womble Nov 30 '15 at 10:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

"Not able to access" Does that mean you get nothing from apache at all, or do you get a Forbidden / Not found message rendered by Apache? – GeoSword Aug 9 '13 at 8:49

Have you configured your iptables to allow CentOS to accept incoming TCP 80 and TCP 443 traffic? Try adding the following line in your /etc/sysconfig/iptables file

-A INPUT -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp --dport 443 -j ACCEPT

You may also want to try restoring / resetting the security context of files in your /var/www/html/ directory by issuing command restorecon -Rv /var/www/html

Hope this helps.

share|improve this answer

What version of CentOS are you using? If 6.x, please ensure selinux disabled.

See file /etc/selinux/config , Set variable SELINUX=disabled , Reboot

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.