change IIS config

This commit is contained in:
vincent 2021-01-17 11:09:12 +01:00
parent b9b67d2728
commit a4da957be2
2 changed files with 5 additions and 4 deletions

View File

@ -107,7 +107,8 @@ nginx_vhosts:
deny all;
}
location ~ ^\/nextcloud\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) {
location ~ ^\/nextcloud\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(?:$|\/) {
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
set $path_info $fastcgi_path_info;
try_files $fastcgi_script_name =404;

View File

@ -33,8 +33,8 @@ nginx_extra_http_options: |
fastcgi_send_timeout 600s;
fastcgi_read_timeout 600s;
nginx_vhosts:
- listen: "80"
server_name: "_"
- listen: "80 default_server"
server_name: "*.ducamps.win ducamps.win"
filename: "redirect80.conf"
state: "present"
template: "{{ nginx_vhost_template }}"
@ -203,7 +203,7 @@ nginx_vhosts:
deny all;
}
location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) {
location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(?:$|\/) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;