[英]Getting a 404 Error for index.php when trying to access it externally
經過廣泛搜索,雙重檢查安裝,重新安裝,故障排除,我不知道下一步轉向何處。
背景:
C:\\PHP
。 主要問題:本地我可以查看index.php
文件,但不能在外部查看。
如果鏈接到/w/
目錄,我得到一個通用page can't be displayed
錯誤。
根據瀏覽器的不同,鏈接到w/index.php
時會得到兩個結果:
page can't be displayed
IIS 404.0 Error.
根據瀏覽器的不同,我會得到兩個鏈接到w/index.php?title=Main_Page;
結果w/index.php?title=Main_Page;
IIS 404.0 Error
unformatted page content
錯誤:
Module: IIS Web Core
Notification: MapRequestHandler
Handler: StaticFile
Error Code: 0x80070002
Requested URL: http://localhost:80/w/index.php?title=Main_Page
Physical Path: C:\inetpub\wwwroot\w\index.php
Logon Method: Anonymous
Logon User: Anonymous
完成故障排除
*.php
(它是)。 index.html
in w/
(通過直接鏈接到文件和鏈接到文件夾)。 "Hello World"
測試/w/index.html
(空白頁面)。 我究竟做錯了什么? 一切都在服務器上本地運行完美。
正如Christpher所說, localhost
在從外部聯系的URL中是錯誤的:如果這是你看到的,你忘了正確設置$ wgServer 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.