User Tools

Site Tools


wiki:lets_encrypt_nginx_reverse_proxy

Lets Encrypt with an nginx reverse proxy

Modify your server clause to allow the subdirectory .well-known to be served from a local directory, eg:

server {
    listen 80;
    server_name sub.domain.com www.sub.domain.com;
    []
    location /.well-known {
            alias /var/www/sub.domain.com/.well-known;
    }
 
    location / {
        # proxy commands go here
        []
    }
}

Tested on

See also

References

wiki/lets_encrypt_nginx_reverse_proxy.txt · Last modified: 2021/06/04 10:59 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki