Main repository for Devuan's www.devuan.org.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

59 lines
2.1 KiB

#
# BEGIN Old config
# TODO: Check if this is still valid
#
# This is the main configuration for devuan.org
# It's included in /etc/nginx/sites-available/devuan.org.conf
# Old URLs
rewrite ^/communicate.*$ /os/debian-fork permanent;
# rewrite ^/releases.*$ https://files.devuan.org permanent;
rewrite ^/os/releases/.*$ /os/releases permanent;
rewrite ^/os/mirror.*$ /#download permanent;
# https://files.devuan.org permanent;
# rewrite ^/os/releases/jessie.*$ https://files.devuan.org permanent;
rewrite ^/donate.*$ /os/donate permanent;
rewrite ^/files/devuan.mp3
/os/download/media/devuan.mp3 permanent;
rewrite ^/files/devuan.wav
/os/download/media/devuan.wav permanent;
rewrite ^/(Devuan_budget|devuan_financial_report_2014).pdf
/os/download/report/devuan_budget_2014.pdf permanent;
rewrite ^/devuan_financial_report_2015.pdf
/os/download/report/devuan_financial_report_2015.pdf permanent;
rewrite ^/newsletter_22dec.html
/os/debian-fork/newsletter-12014-12-22 permanent;
#
# END Old config
#
# Update this each year to "current" d1conf announcement page.
location ~ ^/d1conf(|/)$ {
return 307 $scheme://$server_name/os/debian-fork/d1conf-announce-20190119;
}
# Redirect legacy package listing to pkginfo.devuan.org
location ~ /os/packages/(.*) {
return 301 https://pkginfo.devuan.org/cgi-bin/d1pkgweb-query?search=$1;
}
# Mirror: change 'en' with your language
# Localize error pages, English default
error_page 403 /error/403.html;
error_page 404 /error/404.html;
error_page 500 501 502 503 /error/50x.html;
location /error {
internal;
}
# Links are made like this: /:locale/path
# But English is the default language so we skip /en
# Mirror: switch to your language instead!
# rewrite ^/fr/(.*)$ /$1 last; # French mirror example
rewrite ^/en/(.*)$ /$1 last; # Mirror: comment out if you mirror a translation
location / {
autoindex off;
try_files $uri $uri/index.html $uri.htm $uri.html =404;
}