diff --git a/config/etc/nginx.conf b/config/etc/nginx.conf index 47c419869f..c0741b66a6 100644 --- a/config/etc/nginx.conf +++ b/config/etc/nginx.conf @@ -79,7 +79,7 @@ http { root /var/web/mo/public; # prefer to serve static files directly from nginx - try_files $uri/index.html $uri.html $uri @app; + try_files $uri @app; location @app { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; diff --git a/config/etc/nginx_dev.conf b/config/etc/nginx_dev.conf index fae863900e..f71d6e364b 100644 --- a/config/etc/nginx_dev.conf +++ b/config/etc/nginx_dev.conf @@ -75,7 +75,7 @@ http { root /vagrant/mo/public; # prefer to serve static files directly from nginx - try_files $uri/index.html $uri.html $uri @app; + try_files $uri @app; location @app { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;