{{tag>nginx example letsencrypt}} ====== 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 ====== * [[wiki:install_certbot|certbot installation]] ====== References ====== * https://serverfault.com/questions/768509/lets-encrypt-with-an-nginx-reverse-proxy