Skip to content

Commit 7ce0c1f

Browse files
committed
enhance: update reverse_proxy.conf #389
1 parent 0d5a1f3 commit 7ce0c1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

template/block/reverse_proxy.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ map $http_upgrade $connection_upgrade {
2929
{{- end }}
3030
# Nginx UI Custom End
3131

32+
if ($host != $server_name) {
33+
return 404;
34+
}
35+
3236
location / {
3337
{{ if .enableWebSocket }}
3438
proxy_http_version 1.1;

0 commit comments

Comments
 (0)