MikeKane
asked on
Help with Squid Reverse Proxy Setup
Setting up a new Squid install as a reverse proxy into the network.
I need it to accept requests for a single url over http or https, and forward it internally to a host running on a non standard port for http and https.
What I've done:
Loaded ubuntu 10.04 LTS.
Installed squid using --enable SSL install method.
Added in the wildcard cert for my domain in openSSL and verified.
DNS A record for public is in place and working.
All good up tho there I believe.
Now for squid. I want to have any request for either http on 80 or httpson 443 "thisurl.mydomain.com" to get accepted by squid and forwarded to an internal host IP (lets say 10.10.10.10) port 8080 for http and 4443 for https. I also need to forward the original host header to the internal host as well.
Can someone give me a basic skeleton for a squid.conf to support this setup?
I need it to accept requests for a single url over http or https, and forward it internally to a host running on a non standard port for http and https.
What I've done:
Loaded ubuntu 10.04 LTS.
Installed squid using --enable SSL install method.
Added in the wildcard cert for my domain in openSSL and verified.
DNS A record for public is in place and working.
All good up tho there I believe.
Now for squid. I want to have any request for either http on 80 or httpson 443 "thisurl.mydomain.com" to get accepted by squid and forwarded to an internal host IP (lets say 10.10.10.10) port 8080 for http and 4443 for https. I also need to forward the original host header to the internal host as well.
Can someone give me a basic skeleton for a squid.conf to support this setup?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Even so:
...
http_port 80 accel defaultsite=thisurl.mydomain.com
...
cache_peer 10.10.10.10 parent 8080 0 no-query originserver max-conn=500
...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Both good alternatives. Thanks.
Open in new window
I never configured it as HTTPS, but read here http://wiki.squid-cache.or