mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 16:33:30 +08:00
.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#{"rootDirectory":"","phpVersion":"8.0"}
|
||||
#{"rootDirectory":"public","phpVersion":"8.0"}
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
@@ -16,21 +16,16 @@ server {
|
||||
rewrite ^ https://$host$uri permanent;
|
||||
}
|
||||
|
||||
location ~ /.well-known {
|
||||
location ^~ /.well-known {
|
||||
|
||||
location = /.well-known/carddav { return 301 /remote.php/dav/; }
|
||||
location = /.well-known/caldav { return 301 /remote.php/dav/; }
|
||||
location ^~ /.well-known { return 301 /index.php$uri; }
|
||||
try_files $uri $uri/ =404;
|
||||
auth_basic off;
|
||||
allow all;
|
||||
}
|
||||
|
||||
{{settings}}
|
||||
|
||||
location = /.well-known/carddav {
|
||||
return 301 $scheme://$host:$server_port/remote.php/dav;
|
||||
}
|
||||
|
||||
location = /.well-known/caldav {
|
||||
return 301 $scheme://$host:$server_port/remote.php/dav;
|
||||
}
|
||||
|
||||
location / {
|
||||
rewrite ^ /index.php;
|
||||
}
|
||||
@@ -46,7 +41,7 @@ server {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
index index.php index.html;
|
||||
|
||||
location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) {
|
||||
location ~ ^\/(?:index|setup-nextcloud|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) {
|
||||
include fastcgi_params;
|
||||
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
|
||||
set $path_info $fastcgi_path_info;
|
||||
|
||||
Reference in New Issue
Block a user