فهرست منبع

enhance: update reverse_proxy.conf #389

Jacky 1 سال پیش
والد
کامیت
7ce0c1f951
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      template/block/reverse_proxy.conf

+ 4 - 0
template/block/reverse_proxy.conf

@@ -29,6 +29,10 @@ map $http_upgrade $connection_upgrade {
 {{- end }}
 # Nginx UI Custom End
 
+if ($host != $server_name) {
+    return 404;
+}
+
 location / {
         {{ if .enableWebSocket }}
         proxy_http_version 1.1;