diff --git a/dotfiles/nginx_mod.conf b/dotfiles/nginx_mod.conf new file mode 100755 index 0000000..d23fd2f --- /dev/null +++ b/dotfiles/nginx_mod.conf @@ -0,0 +1,20 @@ +map $http_user_agent $term { + "~*curl*" 1; + "~*wget*" 1; + default 0; +} + +map $term $pretty { + 0 "pretty"; + default ""; +} + +map $term $root { + 1 /var/www/awesm/terminal; + default /var/www/awesm/html; +} + +map $http_user_agent $autoindex_type { + "~*curl*" jsonp; + default html; +}