wpad.dat per no-cache auslliefern

This commit is contained in:
2026-05-10 23:14:21 +02:00
parent 84f0a9a38e
commit b9b40ae904
+8 -2
View File
@@ -1,13 +1,18 @@
server { server {
listen 80; listen 80;
server_name wpad wpad.lan wpad.kernel.rip; server_name wpad wpad.lan wpad.kernel.rip;
# PAC frisch halten - Browser sollen bei jedem Hit nachschauen
add_header Cache-Control "no-cache, must-revalidate" always;
add_header Pragma "no-cache" always;
expires 0;
location /wpad.dat { location /wpad.dat {
root /var/www/wpad; root /var/www/wpad;
types { } types { }
default_type application/x-ns-proxy-autoconfig; default_type application/x-ns-proxy-autoconfig;
} }
# WPAD spec wants both /wpad.dat and /proxy.pac available # WPAD spec wants both /wpad.dat and /proxy.pac available
location /proxy.pac { location /proxy.pac {
alias /var/www/wpad/wpad.dat; alias /var/www/wpad/wpad.dat;
@@ -15,3 +20,4 @@ server {
default_type application/x-ns-proxy-autoconfig; default_type application/x-ns-proxy-autoconfig;
} }
} }