Home  >  Article  >  Backend Development  >  Solution to the problem that Nginx cannot be accessed outside the site

Solution to the problem that Nginx cannot be accessed outside the site

WBOY
WBOYOriginal
2016-08-08 09:21:271111browse

1. Nginx installation method

http://nginx.org/en/docs/install.html

2. The installation is normal but cannot be accessed

After installing nginx on machine A, go to machine B Test The Nginx welcome interface cannot appear.

3. Solution

Try to use the following method to open port 80.

iptables -I INPUT -p tcp --dport 80 -j ACCEPT

The above introduces the solution to the problem that Nginx cannot be accessed outside the site, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn