How do I configure Apache WebServer to access the public domain (or static IP) that I have?

I am trying to set up a web server at home on a PC.

I have a static IP address (say 1.2.3.4 or XYZ domain [dot] com) that I configured on my router. When I try to access, XYZ[dot]comor "1.2.3.4", it opens my login page for routers.

On the other hand, an Apache Server installed on a PC works fine. when I write localhost / index.html or 127.0.0.1/index.html - it opens this page.

Question

  • How do I associate a public IP address with Apache Server (or a website hosted on a local computer on my PC)?

EXPECTED DECISION

+4
source share
2 answers

The router login page is usually accessible through a private IP address. The administrator interface of the router should not be accessible to the public Internet.

What you need to do:

  • find out what the IP address of your router is (you can use http://whatismyipaddress.com/ )
  • . , , IP- , . : IP- - 21.21.21.21, IP- - 192.168.0.100. , , , 21.21.21.21:80, 192.168.0.100:80

http://XYZ[dot]com, , IP- com. DNS, apache (http://httpd.apache.org/docs/2.2/vhosts/)

+7

IP ADDRESS, , apache , , . - .

0

Source: https://habr.com/ru/post/1534022/


All Articles