Problems encountered when using nginx for the first time?
阿神
阿神 2017-05-16 17:10:27
0
3
478

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?

阿神
阿神

闭关修行中......

reply all(3)
巴扎黑

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?

Peter_Zhu


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

伊谢尔伦

How does the computer know how to parse your fa.com? . You need to modify the HOSTS file, or simply write localhost

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template