Welcome! Log In Create A New Profile

Advanced

switching nginx-apache to using SSL

Posted by dmitro7 
switching nginx-apache to using SSL
September 11, 2019 03:25AM
I am having web-site nginx port 80 with proxy_pass http://10.7.1.3:80 to apache port 80
how to switch all this to 443 port with using SSL certificate?
when i make config for SSL certificate working with nginx 443 it is ok but web-site on apache 443 port is not seen

How to do this right way?

should i use streams
Please give example for configuring

Is it config would work 443 port nginx to 443 apache
where should i place certificates

Appreciate any help
You have a great stuff made (mean nginx)
Re: switching nginx-apache to using SSL
September 11, 2019 05:59AM
should i do it in section nginx 1.1 in ssl.conf in folder in conf.d
Re: switching nginx-apache to using SSL
September 11, 2019 01:39PM
You simply have to switch the NGINX endpoint to 443 and the proper SSL configuration. The part between NGINX and Apache stays the same (proxy_pass to port 80 of Apache).

If you also want to secure the connection between NGINX and Apache, you'd need a client certificate for NGINX and a second server certificate for Apache. NGINX will use a proxy_pass via SSL and with a client certificate towards Apache, while the Apache server will use the second SSL certificate and verify the client calling to make sure it's the NGINX.

--j.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready