[英]404 Not Found nginx/1.10.3 (Ubuntu)
I created a folder in var/www/html/test
. 我在var/www/html/test
创建了一个文件夹。 The folder consists of some PHP files. 该文件夹包含一些PHP文件。 I am trying access the file like http://example.com/test/test . 我正在尝试访问http://example.com/test/test之类的文件。 PHP shows the following error: PHP显示以下错误:
404 Not Found nginx/1.10.3 (Ubuntu) 找不到404 nginx / 1.10.3(Ubuntu)
Can anyone help me to fix this problem? 谁能帮我解决这个问题?
You had only one folder: test
. 您只有一个文件夹: test
。 However, on your URL you are trying to access a test
folder inside another test
folder: test/test
. 然而,在您的网址,你正在试图访问一个test
中其他文件夹test
文件夹: test/test
。
So, because the folder test
inside test
doesn't exist, the server throws an 404 error (there is no such folder). 因此,由于test
中的文件夹test
不存在,因此服务器将引发404错误(不存在此类文件夹)。
If you call: http://example.com/test/test
what you are really doing is call the file /test/test/index.html
, /test/test/index.htm
or /test/test/index.php
. 如果您致电: http://example.com/test/test
你真正做的是调用该文件/test/test/index.html
, /test/test/index.htm
或/test/test/index.php
。
you missed 'html' forlder in your URL. 您错过了网址中的“ html” forlder。 it should be like this. 应该是这样 http://example.com/html/test/test http://example.com/html/test/test
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.