Score:0

Nginx redirect from host to particular load balanser host

in flag

I have dns name app.server, and it stream requests to lb1.server and lb2.server. I am trying to get letsencrypt sertificate to app.server and I want to stream request from app.server only to lb1.server: Here is config on 1 host for app.server and lb1.server name are on one server:

server {
            listen 80;
            server_name app.server;
            location /.well-known/ {
                    return 301 http://lb1.server$request_uri/;
            }

    }

    server {
            listen 80;
            server_name lb1.server;
            location /.well-known/ {
                    root /opt/www/acme;
            }
    }

with curl I get an error 404. So acme can't verity host to extract certificate.

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.