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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rickygmCommented:
you need a Apche mod_proxy , chekc this http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Artysystem administratorCommented:
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
Artysystem administratorCommented:
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
Artysystem administratorCommented:
As another alternative look at Varhish proxy: https://www.varnish-cache.org/
0
MikeKaneAuthor Commented:
Both good alternatives.  Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.