2016-12-21 18:32:43 +01:00
|
|
|
location PATHTOCHANGE {
|
|
|
|
alias ALIASTOCHANGE;
|
|
|
|
|
2016-12-22 13:01:20 +01:00
|
|
|
# auth_basic "Reason for being private";
|
|
|
|
# auth_basic_user_file /path/to/htpasswd;
|
|
|
|
|
|
|
|
|
2016-12-21 18:32:43 +01:00
|
|
|
if ($scheme = http) {
|
|
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
|
|
}
|
|
|
|
|
|
|
|
client_max_body_size 10G;
|
2017-01-18 17:48:08 +01:00
|
|
|
index index.php;
|
2016-12-21 18:32:43 +01:00
|
|
|
try_files $uri $uri/ index.php;
|
|
|
|
location ~ [^/]\.php(/|$) {
|
|
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
|
|
fastcgi_pass unix:/var/run/php5-fpm-NAMETOCHANGE.sock;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
|
|
}
|
|
|
|
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
|
|
|
|
|
|
}
|