nginx一個(gè)域名多個(gè)項(xiàng)目 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}把這個(gè)放在其他服務(wù)器前面,這樣即使直接輸入服務(wù)器IP也無(wú)法訪問(wèn)它。您可以自己設(shè)置返回值,例如404