diff options
-rw-r--r-- | apache/vhosts.d/wpad | 6 | ||||
-rw-r--r-- | apache/wpad/wpad.dat | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/apache/vhosts.d/wpad b/apache/vhosts.d/wpad new file mode 100644 index 0000000..d4b26fc --- /dev/null +++ b/apache/vhosts.d/wpad @@ -0,0 +1,6 @@ +<VirtualHost *> + ServerName wpad + DocumentRoot /etc/local-COMMON/apache/wpad + RewriteEngine On + RewriteRule ^/.*$ /etc/local-COMMON/apache/wpad/wpad.dat [T=appilcation/x-ns-proxy-autoconfig] +</VirtualHost> diff --git a/apache/wpad/wpad.dat b/apache/wpad/wpad.dat new file mode 100644 index 0000000..6dda8ce --- /dev/null +++ b/apache/wpad/wpad.dat @@ -0,0 +1,8 @@ +function FindProxyForURL(url, host) +{ +if (isPlainHostName(host) || + dnsDomainIs(host, "cosmosbay.com") || + isInNet(host, "172.16.0.0", "255.255.0.0")) + return "DIRECT" ; +return "PROXY proxy:3128 ; PROXY proxy:3128" ; +} |