Fix install php interface

This commit is contained in:
Julien VAUBOURG
2014-11-08 17:43:15 +01:00
parent 8c49af4731
commit 3783ab65b5
5 changed files with 36 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
location <TPL:NGINX_LOCATION> {
alias <TPL:NGINX_ALIAS>;
alias <TPL:NGINX_REALPATH>;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
@@ -8,7 +8,7 @@ location <TPL:NGINX_LOCATION> {
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm-roundcube.sock;
fastcgi_pass unix:/var/run/php5-fpm-<TPL:PHP_NAME>.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;