如何用nginx搭建网站 nginx如何设置允许直接通过IP访问网站?
nginx如何设置允许直接通过IP访问网站?如果什么都不设置,那么直接通过 IP 就能访问。如果想同时通过网址和 IP 访问,需要在 server_name 中