Try try_files.
This commit is contained in:
parent
6126f26694
commit
bcf821dc58
@ -31,6 +31,8 @@ http {
|
||||
root /srv/http/public;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
|
||||
index index.html index.htm;
|
||||
if (-d $request_filename) {
|
||||
rewrite [^/]$ $http_x_forwarded_proto://$http_host$uri/ redirect;
|
||||
|
Loading…
Reference in New Issue
Block a user