Welcome! Log In Create A New Profile

Advanced

proxy_pass struggles

proxy_pass struggles
August 12, 2023 10:49PM
Good day
I have a https web page running on my home server using nginx and certbot
I started using a second pc as a web development platform.

I installed nginx and certbot on my second pc. I had troubles running certbot on this second pc
I then discovered that all calls to 443 and 80 on the home server where not getting through
I the created a redirect in the main server to the domain name i am using on on port 80

Low and behold my certificates arrived

I need some advise as to how i can redirect 443 calls to my second pc when using the domain used on the second pc

I have tried a lot of options found on the internet with no success

I used the nginx example
on
Securing HTTP Traffic to Upstream Servers

nginx cant find the certificates on the second pc. In the below example is the proxy_ssl_certificate pointing to the main server or the second pc
If on the main server should i move the certificates from the second pc to the main server
location /upstream {
proxy_pass https://backend.example.com;
proxy_ssl_certificate /etc/nginx/client.pem;
proxy_ssl_certificate_key /etc/nginx/client.key;
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
proxy_ssl_ciphers HIGH:!aNULL:!MD5;
proxy_ssl_trusted_certificate /etc/nginx/trusted_ca_cert.crt;

proxy_ssl_verify on;
proxy_ssl_verify_depth 2;
proxy_ssl_session_reuse on;
}
}
Re: proxy_pass struggles
August 14, 2023 12:53PM
With no advise ive given up.
moved the development environment to the main server and did an extend on certbot
All good now
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 136
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready