nginx can be said that the reverse proxy service artifact, has many advantages, but when in use, but was reversed get confused mind, then we have to talk about ideas nginx reverse proxy service
This is the core to be modified
serve: the meaning of the representative server
listen: 80 listening port: The default is 80
serve_name: localhost remote ip address, here's ip address, referring to the ip address that we want to access, for example, we want to access Baidu, will lose www.baidu.com
Figure description
Description of the host file
Ip address 127.0.0.1 www.baidu.com through to access the domain name corresponds to the relationship = assignment, assignment back to the front, can not be accessed 127.0.0.1 www.baidu.com