From b2e9e12ebb5842410007687ff5d45949bc40c31a Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Wed, 24 Apr 2024 01:06:03 +0200 Subject: [PATCH] Change nginx conf files --- dotfiles/nginx.conf | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) mode change 100644 => 100755 dotfiles/nginx.conf diff --git a/dotfiles/nginx.conf b/dotfiles/nginx.conf old mode 100644 new mode 100755 index a13491a..820ee4e --- a/dotfiles/nginx.conf +++ b/dotfiles/nginx.conf @@ -1,19 +1,10 @@ -# Include before server -#map $term $root { -# 1 /var/www/awesm/terminal; -# default /var/www/awesm/html; -#} -# -#map $http_user_agent $autoindex_type { -# "~*curl*" jsonp; -# default html; -#} +#sub_path_only rewrite ^/$ / permanent; +location /lists/idx { + alias $root/; -#sub_path_only rewrite ^/$ / permanentm -location = /lists o - alias $root; + index false; autoindex on; - + autoindex_localtime off; autoindex_format jsonp; } @@ -29,6 +20,7 @@ location /style { } location = / { + add_header x-loc "/ exact"; root $root; try_files /index /index.html; @@ -36,6 +28,7 @@ location = / { #location ~* ^/lists { location / { + add_header x-loc "/ wild"; root $root; try_files $uri $uri.html /redirect?q=$uri;