summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-14 09:28:57 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-14 09:28:57 (GMT)
commit05e696785348842aa9aeb0a6bb320e2528146358 (patch)
treeca4e4ded35df1cfbaffa21e6a6002e37bc373669 /etc
parenta78262ed60cb135a952b16e165b86197a18997ee (diff)
downloadsite-05e696785348842aa9aeb0a6bb320e2528146358.tar.gz
etc/nginx/site.conf: Use exact matches if possible
Let Nginx use exact "location" matches whenever possible.
Diffstat (limited to 'etc')
-rw-r--r--etc/nginx/site.conf12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/nginx/site.conf b/etc/nginx/site.conf
index eb8c5e8..9e94bf6 100644
--- a/etc/nginx/site.conf
+++ b/etc/nginx/site.conf
@@ -59,17 +59,17 @@ server {
59 location = /favicon.ico { 59 location = /favicon.ico {
60 root /home/plugins/web/site/resources; 60 root /home/plugins/web/site/resources;
61 } 61 }
62 location ^~ /snapshot { 62 location = /doc/release-notes/1-5.html {
63 return 301 /download$request_uri; 63 return 301 /news/release-1-5.html;
64 } 64 }
65 location ^~ /download/snapshot/nagios-plugins-HEAD.tar.gz { 65 location = /download/snapshot/nagios-plugins-HEAD.tar.gz {
66 return 301 /download/snapshot/nagios-plugins-master.tar.gz; 66 return 301 /download/snapshot/nagios-plugins-master.tar.gz;
67 } 67 }
68 location ^~ /taxonomy/term/2 { 68 location = /taxonomy/term/2 {
69 return 301 /doc/presentation.html; 69 return 301 /doc/presentation.html;
70 } 70 }
71 location ~ ^/doc/release-notes/(.*)$ { 71 location ^~ /snapshot {
72 return 301 /news/release-$1; 72 return 301 /download$request_uri;
73 } 73 }
74 location ~ ^/(?:man.*|guidelines|extra-opts)$ { 74 location ~ ^/(?:man.*|guidelines|extra-opts)$ {
75 return 301 /doc$request_uri.html; 75 return 301 /doc$request_uri.html;