Skip to content

Commit

Permalink
Fix some regular expression rules by marking them as such.
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisgoddard committed May 28, 2015
1 parent 6563ccd commit ecf0bbc
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
server {

listen 80;
server_name mvp.com;
error_log /home/lewis/Server/mvp.log;
root /home/lewis/Server/mvp;

### DEFAULT OPTIONS START HERE ###

autoindex on;
index index.php index.html;

Expand Down Expand Up @@ -51,13 +42,16 @@ server {
# Redirections from old site
# Trailing slashes and equals signs matter,
# be careful with the permanent redirects.
location /(download|payment) {
location ~ /(download|payment) {
return 301 /;
}
location /(blog|journal) {
location ~ /(blog|journal) {
return 301 http://blog.elementary.io/;
}
location = /(develop|developers) {
location = /develop {
return 301 /developer;
}
location = /developers {
return 301 /developer;
}
location /docs/human-interface-guidelines/ {
Expand All @@ -72,12 +66,8 @@ server {
location /answers {
return 301 /support;
}
# TODO What to do with search?
# /search*
location /support/ {
return 301 /support;
}
# TODO What to do with search?
# /search*

### DEFAULT OPTIONS END HERE ###

}

0 comments on commit ecf0bbc

Please sign in to comment.