julley 发表于 2018-11-9 10:40:47

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]
查看完整版本: Nginx+Php+Discuz配置