Skip to content

Commit

Permalink
Update default version redirects for plugins
Browse files Browse the repository at this point in the history
Remove server block for DNS that cannot be resolved, and doesn't have
any usage in the rest of this config.
  • Loading branch information
markstory committed Jan 21, 2025
1 parent 45bde6e commit e66fe89
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions nginx.conf.sigil
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ server {
rewrite ^/authentication/2\.[0x]/?(.*) /authentication/2/$1 redirect;
}
location ~ ^/authentication/?$ {
rewrite ^ /authentication/2/en/index.html redirect;
rewrite ^ /authentication/3/en/index.html redirect;
}
location ~ ^/authentication/(1|2|3)/?$ {
rewrite ^/authentication/([^/]+) /authentication/$1/en/index.html redirect;
Expand Down Expand Up @@ -173,7 +173,7 @@ server {
rewrite ^/authorization/2\.[x0]/?(.*) /authorization/2/$1 redirect;
}
location ~ ^/authorization/?$ {
rewrite ^ /authorization/2/en/index.html redirect;
rewrite ^ /authorization/3/en/index.html redirect;
}
location ~ ^/authorization/(1|2|3)/?$ {
rewrite ^/authorization/([^/]+) /authorization/$1/en/index.html redirect;
Expand Down Expand Up @@ -201,7 +201,7 @@ server {
rewrite ^/bake/2.x/?(.*) /bake/2/$1 redirect;
}
location ~ ^/bake/?$ {
rewrite ^ /bake/2/en/index.html redirect;
rewrite ^ /bake/3/en/index.html redirect;
}
location ~ ^/bake/[123]/?$ {
rewrite ^/bake/([^/]+) /bake/$1/en/index.html redirect;
Expand Down Expand Up @@ -229,7 +229,7 @@ server {
rewrite ^/chronos/2.x/?(.*) /chronos/2/$1 redirect;
}
location ~ ^/chronos/?$ {
rewrite ^ /chronos/2/en/index.html redirect;
rewrite ^ /chronos/3/en/index.html redirect;
}
location ~ ^/chronos/[123]/?$ {
rewrite ^/chronos/([^/]+) /chronos/$1/en/index.html redirect;
Expand Down Expand Up @@ -257,7 +257,7 @@ server {
rewrite ^/debugkit/4.x/?(.*) /debugkit/4/$1 redirect;
}
location ~ ^/debugkit/?$ {
rewrite ^ /debugkit/4/en/index.html redirect;
rewrite ^ /debugkit/5/en/index.html redirect;
}
location ~ ^/debugkit/[345]/?$ {
rewrite ^/debugkit/([^/]+) /debugkit/$1/en/index.html redirect;
Expand All @@ -284,7 +284,7 @@ server {
rewrite ^/elasticsearch/2.x/?(.*) /elasticsearch/2/$1 redirect;
}
location ~ ^/elasticsearch/?$ {
rewrite ^ /elasticsearch/3/en/index.html redirect;
rewrite ^ /elasticsearch/4/en/index.html redirect;
}
location ~ ^/elasticsearch/[234]/?$ {
rewrite ^/elasticsearch/([^/]+)/?$ /elasticsearch/$1/en/index.html redirect;
Expand All @@ -311,7 +311,7 @@ server {
rewrite ^/migrations/2.x/?(.*) /migrations/2/$1 redirect;
}
location ~ ^/migrations/?$ {
rewrite ^ /migrations/2/en/index.html redirect;
rewrite ^ /migrations/4/en/index.html redirect;
}
location ~ ^/migrations/[234]/?$ {
rewrite ^/migrations/([234])/?$ /migrations/$1/en/index.html redirect;
Expand Down Expand Up @@ -349,7 +349,7 @@ server {

# Queue
location ~ ^/queue/?$ {
rewrite ^ /queue/1/en/index.html redirect;
rewrite ^ /queue/2/en/index.html redirect;
}
location ~ ^/queue/[12]/?$ {
rewrite ^/queue/([12])/?$ /queue/$1/en/index.html redirect;
Expand Down Expand Up @@ -447,16 +447,6 @@ server {
}
}

server {
listen 80;
server_name book2.cakephp.org;

include {{ $.DOKKU_ROOT }}/{{ $.APP }}/nginx.conf.d/*.conf;
location / {
return 302 https://book.cakephp.org/2.0/$uri;
}
}

server {
listen 80;
server_name www.book.cakephp.org manual.cakephp.org;
Expand Down

0 comments on commit e66fe89

Please sign in to comment.