E:\11-nginx-1.18.0\conf
http {
server {
listen 80;
server_name localhost;
root E:\data;
location / {
index index.html index.htm index.php;
}
# autoindex for nginx
location ~ ^(.*)/$ {
autoindex on;
autoindex_localtime on;
autoindex_exact_size off;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
events {
worker_connections 1024; ## Default: 1024
}