diff options
Diffstat (limited to 'bugzilla/etc/nginx/sites-available/bugzilla')
-rw-r--r-- | bugzilla/etc/nginx/sites-available/bugzilla | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/bugzilla/etc/nginx/sites-available/bugzilla b/bugzilla/etc/nginx/sites-available/bugzilla deleted file mode 100644 index d10798f..0000000 --- a/bugzilla/etc/nginx/sites-available/bugzilla +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | server { | ||
2 | root /var/www/html/bugzilla; | ||
3 | |||
4 | autoindex off; | ||
5 | index index.cgi; | ||
6 | |||
7 | location /attachments { return 403; } | ||
8 | location /Bugzilla { return 403; } | ||
9 | location /lib { return 403; } | ||
10 | location /template { return 403; } | ||
11 | location /contrib { return 403; } | ||
12 | location /t { return 403; } | ||
13 | location /xt { return 403; } | ||
14 | location /data { return 403; } | ||
15 | location /graphs { return 403; } | ||
16 | location ~ (\.pm|\.pl|\.psgi|\.tmpl|localconfig.*|cpanfile)$ { return 403; } | ||
17 | |||
18 | location ~ ^/data/webdot/[^/]*\.png$ { } | ||
19 | location ~ ^/graphs/[^/]*\.(png|gif) { } | ||
20 | |||
21 | location /rest { | ||
22 | rewrite ^/rest/(.*)$ rest.cgi?$1 last; | ||
23 | } | ||
24 | |||
25 | location ~ \.(css|js)$ { | ||
26 | expires 1y; | ||
27 | add_header Cache-Control public; | ||
28 | } | ||
29 | |||
30 | location ~ \.cgi$ { | ||
31 | include fastcgi_params; | ||
32 | fastcgi_param SERVER_NAME 'bugs.crute.me'; | ||
33 | fastcgi_param SCRIPT_NAME ''; | ||
34 | fastcgi_param PATH_INFO $uri; | ||
35 | fastcgi_param BZ_CACHE_CONTROL 1; | ||
36 | fastcgi_pass localhost:9090; | ||
37 | } | ||
38 | |||
39 | gzip on; | ||
40 | gzip_types text/xml application/rdf+xml; | ||
41 | } | ||