What is the problem with the configuration of my local virtual host?

Source: Internet
Author: User
Configuration: www.tp5.com has hosts assigned many local virtual hosts for normal access. the configuration of my new tp5 virtual host is copied and pasted, should it be okay? However, the access prompt "Noinputfilespecified." is displayed, but my index. php Ming...

Configuration,www.tp5.comHosts has been sent to The Local
I have configured many local virtual hosts for normal access. my newtp5The configuration of the VM is copied and pasted. should it be correct? However, the access prompt is displayed.No input file specified.But I amindex.phpClearly there?

If you usehttp://localhost/tp/publicBut it can be accessed normally. why?
I tried tp3.2 and tp5 to solve this problem,index.phpClearly

Reply content:

Configuration,www.tp5.comHosts has been sent to The Local
I have configured many local virtual hosts for normal access. my newtp5The configuration of the VM is copied and pasted. should it be correct? However, the access prompt is displayed.No input file specified.But I amindex.phpClearly there?

If you usehttp://localhost/tp/publicBut it can be accessed normally. why?
I tried tp3.2 and tp5 to solve this problem,index.phpClearly

Find the reason. it turns out to berootSeparator ......
Set\Change/That is
E:/phpStudy/WWW/tp/public

Really amazing problem ......

View my configuration

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;        }    }

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.