We help IT Professionals succeed at work.
Get Started

Squid reverse proxy https

maihyvu2
maihyvu2 asked
on
1,208 Views
Last Modified: 2012-05-09
The design is
Client => HTTPs(8443) => SQUID reverse proxy => HTTP(9090) => webserver.

Squid configuration:
=====
acl SSL_ports port 8443
acl Safe_ports port 8443
https_port 8443 cert=/usr/CertAuth/testcert.cert key=/usr/CertAuth/testkey.pem defaultsite=sus1.boeinglabnet.net vhost
cache_peer 10.39.151.12 parent 9090 0 no-query no-digest originserver login=PASS front-end-https=on name=sus1.boeinglabnet.net
======

Now for the crux of the problem on HTTPS  
Client sends a "HTTPS POST" request to SQUID.  SQUID forwards the POST (in HTTP) request to Bugzilla (10.39.151.12:9090).  Bugzilla returns a new "Location" in the Header with an absolute URL:
http://10.39.151.12:9090/buglist.cgi?priority=P2%20%28ASAP%29&query_format=advanced&order=Importance&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED

SQUID proxy resoved it (it is missing the https)
http://10.39.151.161.8443/buglist.cgi?priority=P2%20%28ASAP%29&query_format=advanced&order=Importance&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED

I am really stump on this.  Would need expert help.
Comment
Watch Question
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE