Commit f329c325 authored by Vitaly Lipatov's avatar Vitaly Lipatov

web: use current PHP-FPM socket

parent 72ffa764
...@@ -9,12 +9,12 @@ server { ...@@ -9,12 +9,12 @@ server {
index index.html; index index.html;
#include /etc/nginx/fastcgi_params; #include /etc/nginx/fastcgi_params;
#fastcgi_pass unix:/var/run/php7-fpm/php7.fpm.sock; # PHP-FPM socket is provided by the current ALT PHP package.
} }
location ~* \.php$ { location ~* \.php$ {
#try_files $uri = 404; #try_files $uri = 404;
fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php7-fpm/php7-fpm.sock; # подключаем сокет php-fpm fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
...@@ -23,4 +23,3 @@ server { ...@@ -23,4 +23,3 @@ server {
access_log /var/log/nginx/eterban_access.log; access_log /var/log/nginx/eterban_access.log;
error_log /var/log/nginx/eterban_error.log; error_log /var/log/nginx/eterban_error.log;
} }
...@@ -47,6 +47,7 @@ Group: Development/Other ...@@ -47,6 +47,7 @@ Group: Development/Other
Requires: eterban-common = %EVR Requires: eterban-common = %EVR
Requires: nginx Requires: nginx
Requires: %defphp-redis Requires: %defphp-redis
Requires: %defphp-fpm
%description web %description web
Etersoft ban service. Etersoft ban service.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment