File tree 2 files changed +7
-16
lines changed
2 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,6 @@ http {
27
27
gzip_types text/plain text/css application/json application/json-rpc application/x-javascript text/xml application/xml application/xml+rss text/javascript;
28
28
gzip_comp_level 9 ;
29
29
30
- location /extras/ {
31
- add_header Cache-Control public;
32
- expires 24h ;
33
- root /data/WebGUI/www/extras;
34
- add_header Access-Control-Allow-Origin *;
35
- }
36
-
37
30
##Include per-server vhost configuration files.
38
31
include [% config.getRoot %]/etc/*.nginx;
39
32
Original file line number Diff line number Diff line change @@ -16,17 +16,15 @@ server {
16
16
proxy_set_header Host $host;
17
17
proxy_pass http://127.0.0.1:[% config.get('starman/port') %];
18
18
}
19
- location /uploads {
20
- expires 2h;
21
- if ( $request_filename ~ "^(.*/)" ) {
22
- set $request_directory $document_root$1;
23
- }
24
- if ( -f "$request_directory/.wgaccess" ) {
25
- proxy_pass http://127.0.0.1:[% config.get('starman/port') %];
26
- }
19
+
20
+ location /extras/ {
21
+ add_header Cache-Control public;
22
+ expires 24h;
23
+ root /data/WebGUI/www/extras;
24
+ add_header Access-Control-Allow-Origin *;
27
25
}
26
+
28
27
location /uploads/filepump { expires max; }
29
- location /extras/ { expires 24h; }
30
28
location = /default.ida { access_log off; deny all; }
31
29
location /_vti_bin { access_log off; deny all; }
32
30
location /_mem_bin { access_log off; deny all; }
You can’t perform that action at this time.
0 commit comments