mirror of
https://github.com/YunoHost-Apps/baikal_ynh.git
synced 2024-09-03 18:16:11 +02:00
Merge pull request #4 from plopoyop/master
fix sync with mac os x el capitain
This commit is contained in:
commit
8364c62280
1 changed files with 9 additions and 4 deletions
|
@ -3,9 +3,9 @@ location PATHTOCHANGE {
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
location ~ ^(.+\.php)(.*)$ {
|
location ~ ^(.+\.php)(.*)$ {
|
||||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
|
@ -13,10 +13,15 @@ location PATHTOCHANGE {
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
}
|
}
|
||||||
#rewrite ~ ^/.well-known/caldav PATHTOCHANGE/cal.php redirect;
|
|
||||||
#rewrite ~ ^/.well-known/carddav PATHTOCHANGE/card.php redirect;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /.well-known/carddav {
|
||||||
|
rewrite ^(.*)$ PATHTOCHANGE/card.php redirect;
|
||||||
|
}
|
||||||
|
location /.well-known/caldav {
|
||||||
|
rewrite ^(.*)$ PATHTOCHANGE/cal.php redirect;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ ^PATHTOCHANGE/(\.ht|Core|Specific) {
|
location ~ ^PATHTOCHANGE/(\.ht|Core|Specific) {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue