User Tools

Site Tools


Sidebar

No ai soldati italiani all'estero

Indice

Eventi

Energia

Rigacci.Org usa energia elettrica da fonti rinnovabili, grazie al gruppo di acquisto Merci Dolci.

Merci Dolci - Energia Rinnovabile

Software libero!

Petizione contro i brevetti software

Faunalia: Soluzioni GIS professionali

Debian

www.gnu.org www.kernel.org

doc:appunti:linux:sa:proxy_debug

This is an old revision of the document!


Substitute HTML or JavaScript with a proxy

How to test changes to a live site without touching it

Create a file proxy.pac and store it into your web server:

function FindProxyForURL(url, host) {
    if (shExpMatch(url, "http://remote.server.com:8084/subdir/page.jsp?query_string")) {
        return "PROXY your.server.org:8080";
    }
}

Configure the fake VirtualHost on your web server:



The put the fake file into the DocumentRoot fo the VirtaulHost /var/www/remote.server.com/subdir/page.jsp.

Configure the browser to use automatic proxy, and give http://your.server.org/proxy.pac as the URL.

doc/appunti/linux/sa/proxy_debug.1316094630.txt.gz · Last modified: 2011/09/15 15:50 by niccolo