File tree 2 files changed +4
-4
lines changed
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
13
13
; (IPv6 and IPv4-mapped) on a specific port;
14
14
; '/path/to/unix/socket' - to listen on a unix socket.
15
15
; Note: This value is mandatory.
16
- listen = 127.0.0.1:9000
16
+ listen = /run/php-fpm.sock
17
17
18
18
; Enable status page
19
19
pm.status_path = /fpm-status
Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ http {
51
51
root /var/lib/nginx/html;
52
52
}
53
53
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
55
55
location ~ \.php$ {
56
56
try_files $uri =404 ;
57
57
fastcgi_split_path_info ^(.+\.php)(/.+)$ ;
58
- fastcgi_pass 127.0.0.1:9000 ;
58
+ fastcgi_pass unix:/run/php-fpm.sock ;
59
59
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
60
60
fastcgi_param SCRIPT_NAME $fastcgi_script_name ;
61
61
fastcgi_index index.php;
79
79
deny all ;
80
80
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
81
81
include fastcgi_params;
82
- fastcgi_pass 127.0.0.1:9000 ;
82
+ fastcgi_pass unix:/run/php-fpm.sock ;
83
83
}
84
84
}
85
85
You can’t perform that action at this time.
0 commit comments