logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Certificate problem with proxypass
Author
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Thu 19 Sep '24 22:46    Post subject: Certificate problem with proxypass Reply with quote

Hello,

I would like to use apache to redirect web traffic to another web server.
Web -> Apache with some websites hosted -> Nginx with two websites hosted
I have used proxypass and proxypassreverse and the redirection works.
However, I have a problem with certificates.
The certificate of the apache server is the one presented instead of the one of the second server.
Is there a way around this problem?
Thanks
Back to top
tang_88888



Joined: 10 Jul 2015
Posts: 10

PostPosted: Fri 20 Sep '24 9:01    Post subject: Reply with quote

I think it depends on how many domains involved.

As far as I know, "Redirect" would instruct the browser to request another URL. If another URL is a 2nd domain, its certificate will be presented.

The "ProxyPass" would forward the request at server side. The certificate in the 2nd server would not be accessible by browser.

Am I right?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7360
Location: Germany, Next to Hamburg

PostPosted: Fri 20 Sep '24 10:03    Post subject: Reply with quote

The only way when you use a reverse proxy is to install the correct certificate on the reverse proxy, in this case on your Apache.
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Fri 20 Sep '24 10:21    Post subject: Reply with quote

Damn! I'm going to have to find a way for my synology server to export or make available its certificate.
Since it's a let's encrypt certificate, it changes often...

Thanks a lot
Back to top


Reply to topic   Topic: Certificate problem with proxypass View previous topic :: View next topic
Post new topic   Forum Index -> Apache