mirror of
https://github.com/YunoHost-Apps/pydio_ynh.git
synced 2024-09-03 20:16:05 +02:00
24 lines
677 B
Nginx Configuration File
24 lines
677 B
Nginx Configuration File
location PATHTOCHANGE {
|
|
alias ALIASTOCHANGE;
|
|
if ($scheme = http) {
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
}
|
|
|
|
index index.php;
|
|
|
|
location ~ \.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;
|
|
}
|
|
|
|
}
|
|
|
|
location ~* ^PATHTOCHANGE/(?:\.|conf|data/(?:files|personal|logs|plugins|tmp|cache)|plugins/editor.zoho/agent/files) {
|
|
deny all;
|
|
}
|
|
|
|
location ~* PATHTOCHANGE/data/public/.*.(ser|htaccess)$ {
|
|
deny all;
|
|
}
|