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?  




LVL 33
MikeKaneAsked:
Who is Participating?
 
rickygmConnect With a Mentor Commented:
you need a Apche mod_proxy , chekc this http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
0
 
NopiusCommented:
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
0
 
NopiusCommented:
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

0
 
NopiusConnect With a Mentor Commented:
As another alternative look at Varhish proxy: https://www.varnish-cache.org/
0
 
MikeKaneAuthor Commented:
Both good alternatives.  Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.