User Tools

Site Tools


doc:appunti:linux:sa:proxy_debug

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:sa:proxy_debug [2011/09/15 17:41] niccolodoc:appunti:linux:sa:proxy_debug [2011/09/15 17:45] (current) niccolo
Line 1: Line 1:
-====== Substitute HTML or JavaScript with a proxy ======+====== Substitute HTML or JavaScript on the fly ======
  
-Using this recipe - while browsing a remote server - you can trick your browser into taking one file (JavaScript, HTML, image, ecc.) from a web server controlled by you instead of from the original server.+Using this recipe - while browsing a remote server - you can trick your browser into taking one file (JavaScript, HTML, image, ecc.) from a web server controlled by youinstead of from the original server.
  
 This can be useful to test some changes on a production server without actually touching the deployed code. This can be useful to test some changes on a production server without actually touching the deployed code.
 +
 +It works by telling the browser to use a proxy for a particular URL, and configure a fake web server to serve that content, eventually canged.
  
 Create a file **''proxy.pac''** and store it into your web server: Create a file **''proxy.pac''** and store it into your web server:
Line 41: Line 43:
 Configure the browser to use automatic proxy configuration, and give **''%%http://your.server.org/proxy.pac%%''** as the URL. Configure the browser to use automatic proxy configuration, and give **''%%http://your.server.org/proxy.pac%%''** as the URL.
  
-**NOTE:** This trick does not work with Internet Explorer, because it caches the proxy configuration on a per-server basis. If one page from the server was got via proxy, all the subsequent pages will be too.+**NOTE:** This trick **does not work with Internet Explorer**, because it caches the proxy configuration on a per-server basis. If one page from the server was got via proxy, all the subsequent pages will be too.
doc/appunti/linux/sa/proxy_debug.1316101296.txt.gz · Last modified: 2011/09/15 17:41 by niccolo