Skip to content

Commit

Permalink
Try serving extras via nginx.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Jan 8, 2012
1 parent c8da009 commit 4f3b86c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wre/var/setupfiles/nginx.conf
Expand Up @@ -27,6 +27,13 @@ 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;

Expand Down

0 comments on commit 4f3b86c

Please sign in to comment.