Changeset - 2284f8fa383a
[Not reviewed]
0 1 0
Branko Majic (branko) - 7 years ago 2016-12-17 20:27:30
branko@majic.rs
MAR-86: Once explicitly configured static locations have been exhausted, direct any further requests to WSGI application. I.e. do not serve files from document root unless explicitly configured.
1 file changed with 0 insertions and 4 deletions:
0 comments (0 inline, 0 general)
roles/wsgi_website/templates/nginx_site.j2
Show inline comments
 
@@ -54,10 +54,6 @@ server {
 

	
 
    # Pass remaining requests to the WSGI server.
 
    location / {
 
        try_files $uri @proxy_to_app;
 
    }
 

	
 
    location @proxy_to_app {
 
        proxy_set_header X-Forwarded-Proto $scheme;
 
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 
        proxy_set_header Host $http_host;
0 comments (0 inline, 0 general)