首页 > 请问我本地这个虚拟主机的配置到底哪里问题?

请问我本地这个虚拟主机的配置到底哪里问题?

配置如图,www.tp5.com已hosts向本地
我本地配了很多虚拟主机,都可以正常访问,我这个新的tp5虚拟主机的配置是复制粘贴的,应该也不会打错之类的吧?可是访问却提示No input file specified.,但我这index.php明明在啊?

如果使用http://localhost/tp/public却能正常访问,这是为什么呢?
试了下tp3.2和tp5都有这个问题,index.php明明在的


找到原因了,竟然是root的分隔符问题……
\改为/即可,也就是
E:/phpStudy/WWW/tp/public

真是奇葩的问题……


你看看我的配置

listen       80;
    server_name  www.test.com;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;


    location / {
        root   D:/www/php/www.test.com/www;
        index  index.php;


        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        location ~ \.php$ {
            root          D:/www/php/www.test.com/www;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            #fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
            fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }

    }
【热门文章】
【热门文章】