Skip to content

Commit 4f3b86c

Browse files
committedJan 8, 2012
Try serving extras via nginx.
1 parent c8da009 commit 4f3b86c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎wre/var/setupfiles/nginx.conf

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ http {
2727
gzip_types text/plain text/css application/json application/json-rpc application/x-javascript text/xml application/xml application/xml+rss text/javascript;
2828
gzip_comp_level 9;
2929

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+
3037
##Include per-server vhost configuration files.
3138
include [% config.getRoot %]/etc/*.nginx;
3239

0 commit comments

Comments
 (0)