[英]404 Not Found nginx/1.10.3 (Ubuntu)
我在var/www/html/test
創建了一個文件夾。 該文件夾包含一些PHP文件。 我正在嘗試訪問http://example.com/test/test之類的文件。 PHP顯示以下錯誤:
找不到404 nginx / 1.10.3(Ubuntu)
誰能幫我解決這個問題?
您只有一個文件夾: test
。 然而,在您的網址,你正在試圖訪問一個test
中其他文件夾test
文件夾: test/test
。
因此,由於test
中的文件夾test
不存在,因此服務器將引發404錯誤(不存在此類文件夾)。
如果您致電: http://example.com/test/test
你真正做的是調用該文件/test/test/index.html
, /test/test/index.htm
或/test/test/index.php
。
您錯過了網址中的“ html” forlder。 應該是這樣 http://example.com/html/test/test
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.