Mercurial Hosting > luan
comparison host/startup/nginx/nginx.conf.luan @ 2134:de3107eb911f
improve previous
| author | Violet7 |
|---|---|
| date | Fri, 16 Jan 2026 17:59:40 -0800 |
| parents | c3b4c19f2d8a |
| children |
comparison
equal
deleted
inserted
replaced
| 2133:c3b4c19f2d8a | 2134:de3107eb911f |
|---|---|
| 5 server { | 5 server { |
| 6 # ensure no other default_server exists! | 6 # ensure no other default_server exists! |
| 7 # nginx usually has one at /etc/nginx/sites-enabled/default | 7 # nginx usually has one at /etc/nginx/sites-enabled/default |
| 8 listen 80 default_server; | 8 listen 80 default_server; |
| 9 listen [::]:80 default_server; | 9 listen [::]:80 default_server; |
| 10 include <%=nginxConfigDir%>/nginx.default.conf; | 10 # DON'T put this in the auto-loaded configs dir, |
| 11 # it is not meant to be loaded on its own. | |
| 12 include <%=luanhostDir%>/local/luanhost.default.conf; | |
| 11 | 13 |
| 12 location /.well-known/acme-challenge/ { | 14 location /.well-known/acme-challenge/ { |
| 13 # $host/ssl does not exist for non-ssl sites and requests to here | 15 # $host/ssl does not exist for non-ssl sites and requests to here |
| 14 # will fail with 404 for those sites, which is what we want | 16 # will fail with 404 for those sites, which is what we want |
| 15 alias <%=luanhostDir%>/sites/$host/ssl/acme-challenge/; | 17 alias <%=luanhostDir%>/sites/$host/ssl/acme-challenge/; |
