diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-23 08:18:46 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-23 08:18:46 +0100 |
| commit | 76081fd88fa926a77f0dae3e131b9ff503c392ee (patch) | |
| tree | 67e8fb633a2c12e1bc3571db189c9b8dda7dda96 /http | |
| parent | 4a9649f09675da2f590ee747bb2166c86b264a68 (diff) | |
adds =404 to end of try_files directive
Diffstat (limited to 'http')
| -rw-r--r-- | http/nginx.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/nginx.conf b/http/nginx.conf index 4836efd..c788f22 100644 --- a/http/nginx.conf +++ b/http/nginx.conf @@ -27,7 +27,7 @@ http { location / { root /usr/share/nginx/html; - try_files $uri $uri.html $uri/index.html $uri.php $uri/index.php; + try_files $uri $uri.html $uri/index.html $uri.php $uri/index.php =404; } error_page 404 /error.html; |
