Home  >  Article  >  Operation and Maintenance  >  How does Nginx configure a site with multiple domain names?

How does Nginx configure a site with multiple domain names?

WBOY
WBOYforward
2023-06-02 15:34:131177browse

Configure multiple domain names for one site

server {
 listen 80;
 server_name ops-coffee.cn b.ops-coffee.cn;
}

server_name can be followed by multiple domain names, and separate multiple domain names with spaces

The above is the detailed content of How does Nginx configure a site with multiple domain names?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete