Nginx Virtual Host
There are three types of virtual hosts: domain name, IP address, and port-based virtual hosts.
VI Virtual. conf
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/8E/wKiom1Q_8pCiO3XiAADwC7Qi_M0132.jpg "Title =" 1.png" alt = "wkiom1q_8pcio3xiaadwc7qi_m0132.jpg"/>
VI nginx. conf
Include Virtual. conf; (Note the semicolon at the end)
A server is a Web
SERVER_NAME domain names can be separated by spaces.
Location defines the URL, that is, the domain name.
Root is the root directory for nginx installation.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/8E/wKiom1Q_9j_h6UUaAADwjk20Tl0371.jpg "Title =" 2.png" alt = "wkiom1q_9j_h6uaaadwjk20tl0371.jpg"/>
This article from "Youth Deng Yong" blog, please be sure to keep this source http://dengyong.blog.51cto.com/8409869/1564986
Nginx Virtual Host