Browse Source

enhance: update reverse_proxy.conf #389

Jacky 1 year ago
parent
commit
7ce0c1f951
1 changed files with 4 additions and 0 deletions
  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 }}
 {{- end }}
 # Nginx UI Custom End
 # Nginx UI Custom End
 
 
+if ($host != $server_name) {
+    return 404;
+}
+
 location / {
 location / {
         {{ if .enableWebSocket }}
         {{ if .enableWebSocket }}
         proxy_http_version 1.1;
         proxy_http_version 1.1;