Created a wpad.dat file for Web Proxy Autodiscovery

Today,

  • Created a wpad.dat file for Web Proxy Autodiscovery Protocol so clients get proxy auto configuration, the contents are:
  • function FindProxyForURL(url, host) { return "PROXY luisaranguren.com:3128; DIRECT"; }

  • Updated DNS records to include http://wpad.luisaranguren.com
  • Updated .htaccess for url shorten and redirection

  • [root@monsterxx9 etc]# cat /srv/http/.htaccess
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^autodiscover.luisaranguren.com$
    RewriteRule ^(.*)$ https://luisaranguren.com/Autodiscover/Autodiscover.php [R=301,L] 

    RewriteCond %{HTTP_HOST} ^wpad.luisaranguren.com$
    RewriteRule ^(.*)$ http://luisaranguren.com/wpad.dat [R=301,L]

     

  • Updated from squid 2.7 to 3.1 that includes support for IPv6

Leave a Reply

Your email address will not be published. Required fields are marked *