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

@ -67,24 +67,15 @@ server {
You may report this at <a href='mailto:$server_admin'>$server_admin</a>.</span>";
}
#
# Static service.
# location / {
# root $PAR_SERVICE/storage/volumes/staticweb/;
# allow all;
# autoindex off;
# index index.html index.htm;
# try_files $ri $uri/ =404;
# }
# Optional export backups function.
# Needs ACLs, see the include file.
#include $PAR_SERVICE/configs/nginx_xport.inc;
#
# No static service, but we may provide the OPTIONS for a potential DAV client.
# 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;
# }
# }
# Optional simple static service.
#include $PAR_SERVICE/configs/nginx_static.inc;
#
# Optional simple disabled-static servioe.
#include $PAR_SERVICE/configs/nginx_nostatic.inc;
##################################################################################
# The SSL part