配置nginx 虚拟主机 报错!求解!

配置虚拟主机时报错:

clipboard.png

server{

    listen       80;
    server_name  lv.com;
    #charset koi8-r;

    access_log  /opt/www/logs/lv.access.log;

    error_log  /opt/www/logs/lv.error.log;

    root /opt/www/lv/public;

    location / {
        index index.php index.htm index.html;
        try_files $uri $uri/ /index.php?$args;
    }

    #error_page   500 502 503 504  /50x.html;
    #location = /50x.html {
        #root   html;
    #}

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
    #    include        fastcgi.conf;
    }
}
阅读 2.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题