Alister West

home is where your code is ...

Proxy Passbacks.

Apache 1.3

# Everything    
ProxyPass        /  http://localhost:8003/
ProxyPassReverse /  http://localhost:8003/

# Some 
RewriteEngine on
RewriteRule      ^/cgi-bin/(.*)  http://localhost:8001/cgi-bin/$1 [P,L]
ProxyPassReverse  /cgi-bin/      http://localhost:8001/cgi-bin/

Apache 2.2

# Load balanced reverse proxy
# mod_balancer

<Proxy balancer://myalias>;
    BalancerMember http://192.168.1.21:8003
    BalancerMember http://192.168.1.22:8003
</Proxy>

<VirtualHost *>
ServerName mysite.com

ProxyPass        /balancer-manager !
ProxyPass        / balancer://myalias/
ProxyPassReverse / balancer://myalias/

Nginx

server {
    listen 80;
    server_name star.alisterwest.com *.alisterwest.com;
    rewrite ^(.*)$ http://alisterwest.com$1 permanent;
}

server { 
    server_name alisterwest.com;
    root /var/http/public;

    # Pass everything
    location / {
        proxy_pass http://localhost:9991;
    }

    # Pass some
    location /perl { 
        proxy_pass http://localhost:9991;
    }    

}
By Alister West