From 654bc7b1887db3287c2b91e368fb2aacc5baf330 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Fri, 1 May 2026 10:40:54 -0500 Subject: remove stray file --- .../sites/cleberg_net_static_locations.conf | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 linux/nginx/etc/nginx/custom.d/sites/cleberg_net_static_locations.conf (limited to 'linux/nginx') 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/; } -- cgit v1.2.3