Apache HTTP Server – Making a Home-Based Web Server

apache-http-serverlocalhost

I am new in making web servers. I installed Apache web server in my computer and I forwarded a port 80 on my Router. When I type http://localhost, 127.0.0.1 or my local IP ie 192.168.1.2 in my web browser it loads the default page of Apache server from the hard disk on my local pc.

I want to display that page when user type my WAN IP in his/her web browser. The problem is that the WAN IP navigates the browser to my router's configuration page. How do I display My web page instead of the configuration page of my router.
I am using ZTE ZXDSL831CII router.

Best Answer

Most routers I have used (in a home setting) does not allow connecting to the outer world-facing IP from the inside.

Try accessing your own server through an online proxy like http://hidemyass.com/ to see if that works.

If you still get your configuration page you have allowed access to your router from outside, try turning that off and try again

The configuration page should for security reasons only be visible from inside behind the router and that is the default setting for most routers.

Related Question