adds =404 to end of try_files directive
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ http {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
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;
|
error_page 404 /error.html;
|
||||||
|
|||||||
Reference in New Issue
Block a user