Skip to content

Commit b76abee

Browse files
committed
Fix nginx multiphp templates.
1 parent 59edd73 commit b76abee

40 files changed

+80
-80
lines changed

install/debian/8/multiphp/nginx/PHP-56.stpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:%proxy_ssl_port%;
2+
listen %ip%:%web_ssl_port%;
33
server_name %domain_idn% %alias_idn%;
44
root %sdocroot%;
55
index index.php index.html index.htm;
@@ -23,7 +23,7 @@ server {
2323
return 404;
2424
}
2525

26-
fastcgi_pass /run/php/php5.6-fpm-%domain%.sock;
26+
fastcgi_pass unix:/run/php/php5.6-fpm-%domain%.sock;
2727
fastcgi_index index.php;
2828
include /etc/nginx/fastcgi_params;
2929
}

install/debian/8/multiphp/nginx/PHP-56.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:%proxy_port%;
2+
listen %ip%:%web_port%;
33
server_name %domain_idn% %alias_idn%;
44
root %docroot%;
55
index index.php index.html index.htm;
@@ -19,7 +19,7 @@ server {
1919
return 404;
2020
}
2121

22-
fastcgi_pass /run/php/php5.6-fpm-%domain%.sock;
22+
fastcgi_pass unix:/run/php/php5.6-fpm-%domain%.sock;
2323
fastcgi_index index.php;
2424
include /etc/nginx/fastcgi_params;
2525
}

install/debian/8/multiphp/nginx/PHP-70.stpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:%proxy_ssl_port%;
2+
listen %ip%:%web_ssl_port%;
33
server_name %domain_idn% %alias_idn%;
44
root %sdocroot%;
55
index index.php index.html index.htm;
@@ -23,7 +23,7 @@ server {
2323
return 404;
2424
}
2525

26-
fastcgi_pass /run/php/php7.0-fpm-%domain%.sock;
26+
fastcgi_pass unix:/run/php/php7.0-fpm-%domain%.sock;
2727
fastcgi_index index.php;
2828
include /etc/nginx/fastcgi_params;
2929
}

install/debian/8/multiphp/nginx/PHP-70.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:%proxy_port%;
2+
listen %ip%:%web_port%;
33
server_name %domain_idn% %alias_idn%;
44
root %docroot%;
55
index index.php index.html index.htm;
@@ -19,7 +19,7 @@ server {
1919
return 404;
2020
}
2121

22-
fastcgi_pass /run/php/php7.0-fpm-%domain%.sock;
22+
fastcgi_pass unix:/run/php/php7.0-fpm-%domain%.sock;
2323
fastcgi_index index.php;
2424
include /etc/nginx/fastcgi_params;
2525
}

install/debian/8/multiphp/nginx/PHP-71.stpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:%proxy_ssl_port%;
2+
listen %ip%:%web_ssl_port%;
33
server_name %domain_idn% %alias_idn%;
44
root %sdocroot%;
55
index index.php index.html index.htm;
@@ -23,7 +23,7 @@ server {
2323
return 404;
2424
}
2525

26-
fastcgi_pass /run/php/php7.1-fpm-%domain%.sock;
26+
fastcgi_pass unix:/run/php/php7.1-fpm-%domain%.sock;
2727
fastcgi_index index.php;
2828
include /etc/nginx/fastcgi_params;
2929
}

install/debian/8/multiphp/nginx/PHP-71.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:%proxy_port%;
2+
listen %ip%:%web_port%;
33
server_name %domain_idn% %alias_idn%;
44
root %docroot%;
55
index index.php index.html index.htm;
@@ -19,7 +19,7 @@ server {
1919
return 404;
2020
}
2121

22-
fastcgi_pass /run/php/php7.1-fpm-%domain%.sock;
22+
fastcgi_pass unix:/run/php/php7.1-fpm-%domain%.sock;
2323
fastcgi_index index.php;
2424
include /etc/nginx/fastcgi_params;
2525
}

install/debian/8/multiphp/nginx/PHP-72.stpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:%proxy_ssl_port%;
2+
listen %ip%:%web_ssl_port%;
33
server_name %domain_idn% %alias_idn%;
44
root %sdocroot%;
55
index index.php index.html index.htm;
@@ -23,7 +23,7 @@ server {
2323
return 404;
2424
}
2525

26-
fastcgi_pass /run/php/php7.2-fpm-%domain%.sock;
26+
fastcgi_pass unix:/run/php/php7.2-fpm-%domain%.sock;
2727
fastcgi_index index.php;
2828
include /etc/nginx/fastcgi_params;
2929
}

install/debian/8/multiphp/nginx/PHP-72.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:%proxy_port%;
2+
listen %ip%:%web_port%;
33
server_name %domain_idn% %alias_idn%;
44
root %docroot%;
55
index index.php index.html index.htm;
@@ -19,7 +19,7 @@ server {
1919
return 404;
2020
}
2121

22-
fastcgi_pass /run/php/php7.2-fpm-%domain%.sock;
22+
fastcgi_pass unix:/run/php/php7.2-fpm-%domain%.sock;
2323
fastcgi_index index.php;
2424
include /etc/nginx/fastcgi_params;
2525
}

install/debian/9/multiphp/nginx/PHP-56.stpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:%proxy_ssl_port%;
2+
listen %ip%:%web_ssl_port%;
33
server_name %domain_idn% %alias_idn%;
44
root %sdocroot%;
55
index index.php index.html index.htm;
@@ -23,7 +23,7 @@ server {
2323
return 404;
2424
}
2525

26-
fastcgi_pass /run/php/php5.6-fpm-%domain%.sock;
26+
fastcgi_pass unix:/run/php/php5.6-fpm-%domain%.sock;
2727
fastcgi_index index.php;
2828
include /etc/nginx/fastcgi_params;
2929
}

install/debian/9/multiphp/nginx/PHP-56.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:%proxy_port%;
2+
listen %ip%:%web_port%;
33
server_name %domain_idn% %alias_idn%;
44
root %docroot%;
55
index index.php index.html index.htm;
@@ -19,7 +19,7 @@ server {
1919
return 404;
2020
}
2121

22-
fastcgi_pass /run/php/php5.6-fpm-%domain%.sock;
22+
fastcgi_pass unix:/run/php/php5.6-fpm-%domain%.sock;
2323
fastcgi_index index.php;
2424
include /etc/nginx/fastcgi_params;
2525
}

0 commit comments

Comments
 (0)