Solution to Apache Internet access failure

Source: Internet
Author: User
Tags nginx server

After Apache is installed, you can use http: // localhost or http: // 127.0.0.1 to access the local machine. However, on the Internet (compared with the local machine, the LAN is also considered) cannot be accessed.

This situation can be divided into two problems: the first is in the LAN, the second is in the Internet;

There are three possible causes of this phenomenon,

1. Internet access is not set in the configuration file;

2. Firewall: the firewall of the Computer prohibits Internet access through port 80 (default, or custom;

3. Port 80 is not open to the Internet, or within the LAN or the Internet (Internet firewall or other shipping software );

If the server you configured is a remote host and may be a virtual host, check whether port 80 is enabled (default, customizable ), or a firewall restricts access. If yes, you may encounter unexpected pages when you link the site through an IP address. This is because the Administrator has transferred your link through the management software, the transfer was made before you reached the desired site. I have seen one of them before. It is clear that my site is Apache, but the nginx server page does not exist during remote access, I analyze the remote link IP address from the other party (the IP address has a special port number). There may be a management software on the periphery of the server, which limits remote access, after the recipient is notified, Apache can access the service normally.

Solution to the above three problems:

1. modify the configuration file. The default configuration of httpd. conf in the Apache configuration file is allow from 127.0.0.1, which can be changed to allow from all;

2. Because of the firewall itself, you can first close the firewall to see if it can be accessed and check whether the problem is located here. If so, you need to configure the firewall as follows:

Open the firewall interface on the control panel. Click "allow programs or functions to use Windows Firewall" in the upper left corner"

Check whether the Apache HTTP Server has selected the public network, select it, and try the Internet link. If not, continue with the following operations->

Click "Allow to run another program" in the lower-right corner. Then click "Browse" and find the httpd.exe program "C: \ Wamp \ bin \ apache \ apache2.2.22 \ bin \ httpd.exe;

3. How can I know that port 80 has been opened and is blocked by the peripheral network management software?

A: port scanning (http://tool.chinaz.com/port/) is performed on the local machine and the Internet respectively, and 80 is opened on the Intranet, while 80 is not opened on the internet, indicating that the management software has blocked port 80 information transmission; this issue can only be set by the Administrator.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.