Score:0

nginx as a web proxy with ssl

ve flag

I have installed proxmox and am running a simple ubuntu server where I have installed nginx. How and where do I setup ssl? I only want to use nginx to forward location to another web server. Can I set up Let's Encrypt ssl on the nginx server and forward to port 80 on the other web server or do I have to set up ssl on each of the targets?

I will have many dns names passing through the nginx proxy

Jaromanda X avatar
ru flag
set SSL up on nginx
Score:1
jp flag

yes, you can setup Let's Encrypt ssl on the nginx server and forward to port 80 of other web server.

You may find the answer/discussion on this similar post helpful, nginx as reverse proxy with several domains hosts

Score:0
cn flag

Let's Encrypt creates temporary files inside .well-known directory for authentication. This doesn't work when you're using nginx as a proxy. I think easiest thing you can do is to rewrite .well-known to a local, accessible location.

I'm adaption these instructions from Setup Let’s Encrypt with Nginx Reverse Proxy.

Open nginx config file for the domain,

nano /etc/nginx/sites-available/domain.com.conf

Paste following code before proxy settings,

location /.well-known {
        alias /var/www/something/html/.well-known;
}

Restart nginx

systemctl restart nginx.service

Try it!

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.