Update nginx.conf with new redirects and latest cli/gui versions

This commit is contained in:
MaxXor 2018-01-10 21:23:59 +01:00
parent e284b39270
commit e09e37f0a6

View file

@ -55,58 +55,72 @@ server {
} }
# End of general restrictions # End of general restrictions
rewrite ^/home / permanent;
rewrite ^/knowledge-base / permanent;
rewrite ^/knowledge-base/projects /resources/merchants/ permanent;
rewrite ^/knowledge-base/user-guides /resources/user-guides/ permanent;
rewrite ^/knowledge-base/developer-guides /resources/developer-guides/ permanent;
rewrite ^/knowledge-base/moneropedia /resources/moneropedia/ permanent;
rewrite ^/knowledge-base/people /community/team/ permanent;
rewrite ^/knowledge-base/open-alias /the-monero-project/ permanent;
rewrite ^/knowledge-base/about /resources/about/ permanent;
rewrite ^/getting-started/donate /get-started/contributing/ permanent;
rewrite ^/getting-started/accepting /get-started/accepting/ permanent;
rewrite ^/getting-started/merchants /community/merchants/ permanent;
rewrite ^/getting-started/running /get-started/using/ permanent;
# Downloads! # Downloads!
location /win64 { location /win64 {
rewrite ^ /cli/monero-win-x64-v0.10.3.1.zip redirect; rewrite ^ /cli/monero-win-x64-v0.11.1.0.zip redirect;
} }
location /win32 { location /win32 {
rewrite ^ /cli/monero-win-x86-v0.10.3.1.zip redirect; rewrite ^ /cli/monero-win-x86-v0.11.1.0.zip redirect;
} }
location /mac64 { location /mac64 {
rewrite ^ /cli/monero-mac-x64-v0.10.3.1.tar.bz2 redirect; rewrite ^ /cli/monero-mac-x64-v0.11.1.0.tar.bz2 redirect;
} }
location /linux64 { location /linux64 {
rewrite ^ /cli/monero-linux-x64-v0.10.3.1.tar.bz2 redirect; rewrite ^ /cli/monero-linux-x64-v0.11.1.0.tar.bz2 redirect;
} }
location /linux32 { location /linux32 {
rewrite ^ /cli/monero-linux-x86-v0.10.3.1.tar.bz2 redirect; rewrite ^ /cli/monero-linux-x86-v0.11.1.0.tar.bz2 redirect;
} }
location /linuxarm7 { location /linuxarm7 {
rewrite ^ /cli/monero-linux-armv7-v0.10.3.1.tar.bz2 redirect; rewrite ^ /cli/monero-linux-armv7-v0.11.1.0.tar.bz2 redirect;
} }
location /linuxarm8 { location /linuxarm8 {
rewrite ^ /cli/monero-linux-armv8-v0.10.3.1.tar.bz2 redirect; rewrite ^ /cli/monero-linux-armv8-v0.11.1.0.tar.bz2 redirect;
} }
location /freebsd64 { location /freebsd64 {
rewrite ^ /cli/monero-freebsd-x64-v0.10.3.1.tar.bz2 redirect; rewrite ^ /cli/monero-freebsd-x64-v0.11.1.0.tar.bz2 redirect;
} }
location /dragonflybsd64 { location /dragonflybsd64 {
rewrite ^ /cli/monero-dragonflybsd-x64-v0.10.3.1.tar.bz2 redirect; rewrite ^ /cli/monero-dragonflybsd-x64-v0.11.1.0.tar.bz2 redirect;
} }
# GUI downloads # GUI downloads
location /gui/win64 { location /gui/win64 {
rewrite ^ /gui/monero-win-x64-v0.10.3.1.zip redirect; rewrite ^ /gui/monero-gui-win-x64-v0.11.1.0.zip redirect;
} }
location /gui/mac64 { location /gui/mac64 {
rewrite ^ /gui/monero-mac-x64-v0.10.3.1.tar.bz2 redirect; rewrite ^ /gui/monero-gui-mac-x64-v0.11.1.0.tar.bz2 redirect;
} }
location /gui/linux64 { location /gui/linux64 {
rewrite ^ /gui/monero-linux-x64-v0.10.3.1.tar.bz2 redirect; rewrite ^ /gui/monero-gui-linux-x64-v0.11.1.0.tar.bz2 redirect;
} }
location /gui/linux32 { location /gui/linux32 {
rewrite ^ /gui/monero-linux-x86-v0.10.3.1.tar.bz2 redirect; rewrite ^ /gui/monero-gui-linux-x86-v0.11.1.0.tar.bz2 redirect;
} }
# Other download redirects # Other download redirects