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.
 
 
 
 
 

60 lines
2.1 KiB

  1. #
  2. # BEGIN Old config
  3. # TODO: Check if this is still valid
  4. #
  5. # This is the main configuration for devuan.org
  6. # It's included in /etc/nginx/sites-available/devuan.org.conf
  7. # Old URLs
  8. rewrite ^/communicate.*$ /os/debian-fork permanent;
  9. # rewrite ^/releases.*$ https://files.devuan.org permanent;
  10. rewrite ^/os/releases/.*$ /os/releases permanent;
  11. rewrite ^/os/mirror.*$ /#download permanent;
  12. # https://files.devuan.org permanent;
  13. # rewrite ^/os/releases/jessie.*$ https://files.devuan.org permanent;
  14. rewrite ^/donate.*$ /os/donate permanent;
  15. rewrite ^/files/devuan.mp3
  16. /os/download/media/devuan.mp3 permanent;
  17. rewrite ^/files/devuan.wav
  18. /os/download/media/devuan.wav permanent;
  19. rewrite ^/(Devuan_budget|devuan_financial_report_2014).pdf
  20. /os/download/report/devuan_budget_2014.pdf permanent;
  21. rewrite ^/devuan_financial_report_2015.pdf
  22. /os/download/report/devuan_financial_report_2015.pdf permanent;
  23. rewrite ^/newsletter_22dec.html
  24. /os/debian-fork/newsletter-12014-12-22 permanent;
  25. #
  26. # END Old config
  27. #
  28. # Update this each year to "current" d1conf announcement page.
  29. location ~ ^/d1conf(|/)$ {
  30. return 307 $scheme://$server_name/os/debian-fork/d1conf-announce-20190119;
  31. }
  32. # Redirect legacy package listing to pkginfo.devuan.org
  33. location ~ /os/packages/(.*) {
  34. return 301 https://pkginfo.devuan.org/cgi-bin/d1pkgweb-query?search=$1;
  35. }
  36. # Mirror: change 'en' with your language
  37. # Localize error pages, English default
  38. error_page 403 /error/403.html;
  39. error_page 404 /error/404.html;
  40. error_page 500 501 502 503 /error/50x.html;
  41. location /error {
  42. internal;
  43. }
  44. # Links are made like this: /:locale/path
  45. # But English is the default language so we skip /en
  46. # Mirror: switch to your language instead!
  47. # rewrite ^/fr/(.*)$ /$1 last; # French mirror example
  48. rewrite ^/en/(.*)$ /$1 last; # Mirror: comment out if you mirror a translation
  49. location / {
  50. autoindex off;
  51. try_files $uri $uri/index.html $uri.htm $uri.html =404;
  52. }