Home > Backend Development > PHP Tutorial > windows system nginx domain name configuration

windows system nginx domain name configuration

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-28 08:28:26
Original
1582 people have browsed it

nginx installation: http://blog.csdn.net/shuai825644975/article/details/51776604

When nginx has been installed, simply configure domain name access

1. Modify - nginx/conf/nginx. conf file

Introduce files in http {...} (usually there will be multiple domain names, and the imported files are easy to expand and maintain)

As shown in the picture, I have countless files under the path D:/nginx/conf/ershuai Files ending with .conf, each .conf file is a domain name configuration; * represents any of your file names

 windows系统 nginx域名配置

2. Configure the domain name file under D:/nginx/conf/ershuai;

Here I configure a second-level domain name of testsg.xxx.com (the .conf file name can be chosen at will, I chose the same name as the domain name to facilitate maintenance)

listen listening port, service_name defines access; location/proxy_pass local project access path;

There are many attributes and regular rules in the service, and I am slowly learning...

 windows系统 nginx域名配置

3. After the above configuration is completed, restart nginx, and you can access it through testsg.xxx.com

 windows系统 nginx域名配置

The above introduces the nginx domain name configuration of the windows system, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template