I installed nginx in win7 environment.
After I close nginx in cmd, can I still access the welcome page by typing localhost on the browser?
I added a server in the config file, but somehow I can’t access it?
巴扎黑2017-05-16 17:12:27
I have a question:
server{
listen: 80;
server_name: fa.com;
...
}
You fa.com
If you access it in a browser, do you need to modify the hosts file first to point to 127.0.0.1, the same as localhost?
天蓬老师2017-05-16 17:12:27
After clicking Close, you have to check whether it is closed in your resource manager. It is possible that you have opened multiple ones and they are not closed cleanly. It is the same as what I encountered before. After closing them all and restarting your Nginx, there should be no problem. Problem
Four pictures show the basic configuration of Nginx at a glance
伊谢尔伦2017-05-16 17:12:27
How does the computer know how to parse your fa.com? . You need to modify the HOSTS file, or simply write localhost