Nginx+Php+Discuz配置
server { listen 80;server_name www.test.com;
location / {
root upload;
index index.php index.html index.htm;
}
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/nginx/upload$fastcgi_script_name;
include fastcgi_params;
}
页:
[1]