How can i access apache web pages from outside VMWare ESXi virtual Machine

I am using ESXi 4.1 and have a CentOs 6.2 Virtual Machine with apache server running. I cannot access this web server from outside the Virtual Machine.

My ESXi 4.1 is on 10.0.11.11 The VM i have setup has the IP 10.0.1.152 i can ssh to this VM from outside, but cannot access the web page


Solution 1:

You just need to open port 80 for apache:

sudo firewall-cmd --add-service=http --permanent
sudo firewall-cmd --reload