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