linux/conf/nginx/sites-available/trac

27 lines
537 B
Plaintext
Raw Permalink Normal View History

2014-10-10 16:35:33 +02:00
server {
server_name trac.example.com;
access_log /data/log/nginx/trac-access.log;
error_log /data/log/nginx/trac-error.log;
2014-10-10 16:35:33 +02:00
client_max_body_size 20M;
location / {
proxy_pass http://localhost:8000/;
include proxy_params;
}
location ~ chrome/common {
2015-10-26 17:06:27 +01:00
root /usr/local/lib/python2.7/dist-packages/trac/htdocs;
2014-10-10 16:35:33 +02:00
rewrite /([^/]+)/chrome/common/(.*) /$2 break;
expires 4w;
}
location ~ chrome/site {
2015-10-26 17:06:27 +01:00
root /data/trac;
2014-10-10 16:35:33 +02:00
rewrite /([^/]+)/chrome/site/(.*) /$1/htdocs/$2 break;
expires 1d;
autoindex on;
}
}