summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/nginx/etc/nginx/custom.d/sites/cleberg_net_static_locations.conf38
1 files changed, 0 insertions, 38 deletions
diff --git a/linux/nginx/etc/nginx/custom.d/sites/cleberg_net_static_locations.conf b/linux/nginx/etc/nginx/custom.d/sites/cleberg_net_static_locations.conf
deleted file mode 100644
index 2ece0d1..0000000
--- a/linux/nginx/etc/nginx/custom.d/sites/cleberg_net_static_locations.conf
+++ /dev/null
@@ -1,38 +0,0 @@
-location /org/ {
- internal;
- alias /var/www/cleberg.net/org/;
- default_type text/markdown;
- add_header Content-Type "text/markdown; charset=utf-8" always;
- add_header Vary "Accept" always;
-}
-
-location = / {
- if ($http_accept ~* "text/markdown") {
- rewrite ^/$ /org/index.org last;
- }
-
- add_header Vary "Accept" always;
- try_files /index.html =404;
-}
-
-location / {
- try_files $uri $uri/ =404;
-}
-
-location /blog/ {
- rewrite ^/blog/((?!index)[^/]+)/(.*)$ /blog/$1.html permanent;
- if ($http_accept ~* "text/markdown") {
- rewrite ^/blog/([^/]+)\.html$ /org/blog/$1.org last;
- }
-}
-
-location ~ ^/(.+)\.html$ {
- if ($http_accept ~* "text/markdown") {
- rewrite ^/(.+)\.html$ /org/$1.org last;
- }
- add_header Vary "Accept" always;
- try_files $uri =404;
-}
-
-location /atom.xml { return 301 $scheme://$host/feed.xml; }
-location /blog/salary-transparency.html { return 301 $scheme://$host/salary/; }