Archive

Archive for October, 2008

Configuring a web application for proxy

October 2, 2008 Leave a comment

For some mysterious reason, the web proxy auto detect setting in the web.config file for a web application does not work that well. Thankfully it’s possible to specify proxy settings manually in the web.config file by adding the following entries in the <system.net> section:

<defaultProxy>
   <proxy proxyaddress="http://%5BServerIP%5D:%5BPort%5D&quot; bypassonlocal="true" />
   <bypasslist>
     <add address="myOwnDomain.com" />
   </bypasslist>
</defaultProxy>

To revert to the default auto detect setting, replace the section above with the following:

<defaultProxy>
    <proxy autoDetect="true" />
</defaultProxy>

N’Joy!

Advertisements
%d bloggers like this: