Mercurial Hosting > luan
comparison host/startup/nginx/nginx.conf.luan @ 2168:c26aca3d2f76
use try_files, again
| author | Violet7 |
|---|---|
| date | Sat, 14 Feb 2026 00:41:06 -0800 |
| parents | 484d2b42f2d1 |
| children |
comparison
equal
deleted
inserted
replaced
| 2167:1f384f9acb1c | 2168:c26aca3d2f76 |
|---|---|
| 29 | 29 |
| 30 location /.well-known/acme-challenge/ { | 30 location /.well-known/acme-challenge/ { |
| 31 # $host/ssl does not exist for non-ssl sites and requests to here | 31 # $host/ssl does not exist for non-ssl sites and requests to here |
| 32 # will fail with 404 for those sites, which is what we want | 32 # will fail with 404 for those sites, which is what we want |
| 33 alias <%=rootDir%>/sites/$host/ssl/acme-challenge/; | 33 alias <%=rootDir%>/sites/$host/ssl/acme-challenge/; |
| 34 autoindex on; | 34 try_files $uri $uri/ =404; |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 | 37 |
| 38 # glob pattern returns no results for site dirs that don't have | 38 # glob pattern returns no results for site dirs that don't have |
| 39 # the ssl/ subdir, so this is ok | 39 # the ssl/ subdir, so this is ok |
