File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ error_log = /dev/stderr
1313; (IPv6 and IPv4-mapped) on a specific port;
1414; '/path/to/unix/socket' - to listen on a unix socket.
1515; Note: This value is mandatory.
16- listen = 127.0.0.1:9000
16+ listen = /run/php-fpm.sock
1717
1818; Enable status page
1919pm.status_path = /fpm-status
Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ http {
5151 root /var/lib/nginx/html;
5252 }
5353
54- # Pass the PHP scripts to PHP-FPM listening on 127.0.0.1:9000
54+ # Pass the PHP scripts to PHP-FPM listening on php-fpm.sock
5555 location ~ \.php$ {
5656 try_files $uri =404 ;
5757 fastcgi_split_path_info ^( .+\.php)( /.+) $;
58- fastcgi_pass 127.0.0.1:9000 ;
58+ fastcgi_pass unix:/run/php-fpm.sock ;
5959 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
6060 fastcgi_param SCRIPT_NAME $fastcgi_script_name ;
6161 fastcgi_index index .php;
7979 deny all;
8080 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
8181 include fastcgi_params;
82- fastcgi_pass 127.0.0.1:9000 ;
82+ fastcgi_pass unix:/run/php-fpm.sock ;
8383 }
8484 }
8585
You can’t perform that action at this time.
0 commit comments