Nginx enhancements - split configuration (nginx_*.inc stubs)
This commit is contained in:
11
.templates/nginx/nginx_nostatic.inc
Normal file
11
.templates/nginx/nginx_nostatic.inc
Normal file
@ -0,0 +1,11 @@
|
||||
# Includable nginx configuration.
|
||||
#
|
||||
# A simple no-static service.
|
||||
location / {
|
||||
types { } default_type text/html;
|
||||
# dav_ext_methods OPTIONS;
|
||||
if ($request_method != OPTIONS) {
|
||||
return 404 "<span style='font-size: x-large'>Sorry try <a href='$scheme://$server_name/$PAR_LOCATION'>$scheme://$server_name/$PAR_LOCATION</a> instead.</span>";
|
||||
# return 302 $scheme://$server_name/$PAR_LOCATION;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user