nginx怎樣禁止其他域名解析到目錄?
nginx怎樣禁止其他域名解析到目錄?房東想阻止域名的網(wǎng)址跳轉(zhuǎn),在你的網(wǎng)站上nginx.conf文件Add server{listen 80 default server}name}Return 50
nginx怎樣禁止其他域名解析到目錄?
房東想阻止域名的網(wǎng)址跳轉(zhuǎn),在你的網(wǎng)站上nginx.conf文件Add server{listen 80 default server}name}Return 500}把這個放在其他服務(wù)器前面,這樣即使直接輸入服務(wù)器IP也無法訪問它。您可以自己設(shè)置返回值,例如404