2
0

Nginx enhancements - split configuration (nginx_*.inc stubs)

This commit is contained in:
2025-03-06 19:03:08 +01:00
parent eb5ede75f0
commit 0342dfe641
5 changed files with 38 additions and 21 deletions

View 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;
}
}