PHP problem, enter localhost/index.php display in the browser, but enter the specific location localhost/tosoul/index.php not display.

Source: Internet
Author: User
PHP problem, enter localhost/index.php display in the browser, but enter the specific location localhost/tosoul/index.php not display. 404 This is what the question, consulted.


Reply to discussion (solution)

To see if the catalog files really exist, pay attention to whether the Tosoul folder exists in the folder that localhost points to

tosoul/index.php file does not exist

If tosoul/index.php does not exist, nature is 404
If tosoul/index.php is real, it should be you don't have access to open subdirectories

Confirm file directory exists no? See if your server root directory is correct

If tosoul/index.php does not exist, nature is 404
If tosoul/index.php is real, it should be you don't have access to open subdirectories



Should I return 403 if I don't have open access?

1. See where your root directory is pointing
2, see if you have tosoul/index.php in the root directory

The file is present.

If tosoul/index.php does not exist, nature is 404
If tosoul/index.php is real, it should be you don't have access to open subdirectories


If not open, is that not directly the first way to not show?

Apache has already developed the root directory, your root directory tosoul/index.php This folder and this file?

The problem is that in this, localhost has included the folder, and then the input is wrong, modify the vhosts can be

  • 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.