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;
}
}