Link to home
Start Free TrialLog in
Avatar of MikeKane
MikeKaneFlag for United States of America

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?  




ASKER CERTIFIED SOLUTION
Avatar of rickygm
rickygm
Flag of Nicaragua image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Arty K
Pretty easy for HTTP:
...
http_port 80 accel defaultsite=10.10.10.10
...
cache_peer 10.10.10.10 parent 8080 0 no-query originserver max-conn=500
...

Open in new window


I never configured it as HTTPS, but read here http://wiki.squid-cache.org/ConfigExamples/Reverse/SslWithWildcardCertifiate
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
...

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MikeKane

ASKER

Both good alternatives.  Thanks.