Просмотр исходного кода

enhance: update reverse_proxy.conf #389

Jacky 1 год назад
Родитель
Сommit
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;