Skip to content
Permalink
Browse files

Location blocks can't be inherited by declaring them outside of a ser…

…ver block.
  • Loading branch information...
perlDreamer committed Jan 8, 2012
1 parent 4f3b86c commit 46180af9af95810c26125dba40e3c640ec148976
Showing with 7 additions and 16 deletions.
  1. +0 −7 wre/var/setupfiles/nginx.conf
  2. +7 −9 wre/var/setupfiles/nginx.template
@@ -27,13 +27,6 @@ http {
gzip_types text/plain text/css application/json application/json-rpc application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 9;

location /extras/ {
add_header Cache-Control public;
expires 24h;
root /data/WebGUI/www/extras;
add_header Access-Control-Allow-Origin *;
}

##Include per-server vhost configuration files.
include [% config.getRoot %]/etc/*.nginx;

@@ -16,17 +16,15 @@ server {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:[% config.get('starman/port') %];
}
location /uploads {
expires 2h;
if ( $request_filename ~ "^(.*/)" ) {
set $request_directory $document_root$1;
}
if ( -f "$request_directory/.wgaccess" ) {
proxy_pass http://127.0.0.1:[% config.get('starman/port') %];
}

location /extras/ {
add_header Cache-Control public;
expires 24h;
root /data/WebGUI/www/extras;
add_header Access-Control-Allow-Origin *;
}

location /uploads/filepump { expires max; }
location /extras/ { expires 24h; }
location = /default.ida { access_log off; deny all; }
location /_vti_bin { access_log off; deny all; }
location /_mem_bin { access_log off; deny all; }

0 comments on commit 46180af

Please sign in to comment.
You can’t perform that action at this time.