I'm trying host a website on my mac mountain lion.
Do I need virtualhostx to have my website online? So far it's only local and none of my friends can view it?
I'm trying host a website on my mac mountain lion.
Do I need virtualhostx to have my website online? So far it's only local and none of my friends can view it?
Your viewing it as locahost
or 127.0.0.1
I presume. My guess is that you're behind a router, and you could even get to your site with the IP provisioned by the router. The problem is that your router doesn't know how to redirect requests coming from outside, so anyone hitting your external IP can't reach your machine.
To get around this, you need to create a Port Forwarding rule on your router to explicitly tell it where to send port 80 requests.
Usually internet connectivity is done using a NAT router, thus port forwarding needs to be in place for Apache to work behind it.
Since there's so many router models all around the world, you should follow this web page, as it's arguably the best resource out there:
Also this question was asked quite a lot of times, actually. Please make a search before asking next time.