Home > front end >  Nginx proxy is configured with multiple domain name after the master will not be able to access the
Nginx proxy is configured with multiple domain name after the master will not be able to access the

Time:09-25

And that's the basic structure
 
HTTP {
//the native site
Server {
Listen, 80;
server_name localhost;
}

The include vhost/*. Conf.//here introduces the reverse proxy to use of many domain name server's excess broadband traffic
}


*. The conf is many
 
Server {
Listen, 80;
Server_name xxx1
Proxy_pass...
}
Server {
Listen, 80;
Server_name xxx2
Proxy_pass...
}


If you don't add the include vhost/*. Conf; IP access what works, and include vhost/*. Conf. Immediately the IP can't access to 404

Half a day without a solution, a great god

CodePudding user response:

Settled, but I don't know why, the main server_name IP localhost; It is ok, don't know why after added reverse without IP can't use IP access
?Come and take it
  • Related