Changeset - bd13e65e0e94
[Not reviewed]
0 1 0
Branko Majic (branko) - 9 years ago 2015-05-11 23:31:31
branko@majic.rs
MAR-5: Updated the wsgi website to make the nginx configirations look a bit better.
1 file changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
roles/wsgi_website/templates/nginx_site.j2
Show inline comments
 
@@ -5,17 +5,21 @@ server {
 

	
 
    server_name {{ fqdn }};
 

	
 
    {% if rewrites -%}
 
    # Site rewrites.
 
    {% for rewrite in rewrites -%}
 
    rewrite {{ rewrite }};
 
    {% endfor %}
 
    {% endfor -%}
 
    {% endif %}
 

	
 
    {% if static_locations -%}
 
    # Static locations
 
    {% for location in static_locations -%}
 
    location {{ location }} {
 
        try_files $uri $uri/ =404;
 
    }
 
    {% endfor %}
 
    {% endfor -%}
 
    {% endif %}
 

	
 
    # Pass remaining requests to the WSGI server.
 
    location / {
0 comments (0 inline, 0 general)