Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Features/Automatic Proxy Settings
(view source)
Revision as of 08:31, 7 January 2013
789 bytes added
,
08:31, 7 January 2013
→PAC - Proxy Auto Config
Line 33:
Line 33:
== PAC - Proxy Auto Config ==
== PAC - Proxy Auto Config ==
+
PAC method for proxy is very simple. You have to create a web-accessible
+
file with special syntax in which you include proxy server data. This example
+
works with Apache server. You can take a look to [http://wiki.sugarlabs.org/go/Features/Automatic_Proxy_Settings#Detailed_Description Bibliograpy]
+
for mor info about PAC file configuration and installation in other webservers.
+
+
Steps:
+
+
* Create .htaccess file and add the following content: AddType application/x-ns-proxy-autoconfig .pac
+
+
* Create PAC file and add the following content:
+
+
function FindProxyForURL(url, host) {
+
return "PROXY PROXY_SERVER_IP_OR_HOSTNAME:PORT";
+
}
+
+
* Upload both file to the same location:
+
+
mv proxy.pac /var/www/proxy.pac
+
mv .htaccess /var/www/.htaccess
+
+
* Restart apache /etc/init.d/apache2 restart
== WPAD - Web Proxy Autodiscovery ==
== WPAD - Web Proxy Autodiscovery ==
Ariel Calzada
67
edits