1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/baikal_ynh.git synced 2024-09-03 18:16:11 +02:00
baikal_ynh/conf/nginx.conf
2014-03-23 19:34:15 +07:00

22 lines
No EOL
727 B
Nginx Configuration File

location PATHTOCHANGE {
alias ALIASTOCHANGE;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
index index.php;
location ~ ^(.+\.php)(.*)$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
#rewrite ~ ^/.well-known/caldav PATHTOCHANGE/cal.php redirect;
#rewrite ~ ^/.well-known/carddav PATHTOCHANGE/card.php redirect;
}
location ~ ^PATHTOCHANGE/(\.ht|Core|Specific) {
deny all;
}