pydio_ynh/conf/nginx.conf
2015-01-24 14:59:40 +01:00

24 lines
724 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-NAMETOCHANGE.sock;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
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;
}