# netstat -an |grep 127.0.0.1:9000
server {
listen 80;
server_name localhost 192.168.0.10;
root /var/www;
index index.php index.html;
location ~ .(php|html|htm)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
# netstat -a --unix |grep php unix 2 [ ACC ] STREAM LISTENING 211772 /run/php/php7.4-fpm.sock
server {
listen 80;
server_name localhost 192.168.0.10;
root /var/www;
index index.php index.html;
location ~ .(php|html|htm)$ {
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}