add mod file for nginx
This commit is contained in:
20
dotfiles/nginx_mod.conf
Executable file
20
dotfiles/nginx_mod.conf
Executable file
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user