Skip to content

Commit

Permalink
Have nginx stop trying <request>.html and <request>/index.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
pellaea committed Feb 4, 2015
1 parent 65f775a commit 5b7c5f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/etc/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion config/etc/nginx_dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5b7c5f0

Please sign in to comment.