2015-03-13 99 views
1

我已經通過GitHub託管了Azure網站,並且希望創建自定義404頁面。
我的VisualStudio2013已連接到Azure。如何訪問web.config?
如果我想通過FTP方式 - 我怎樣才能訪問它與我的VS2013?
是否可以通過Azure門戶設置自定義404?Azure網站上的自定義404

目前我得到的standardpage:

Error 404 - Web Site not found! 

The website you have attempted to reach is 
not available in this Microsoft Azure Web Sites 
region. This could be due to one of several 
reasons: 

回答

1

只要編輯在Visual Studio解決方案的web.config文件,修改的customErrors部分,然後檢查文件到Github上引發了新的部署。 Azure文檔站點有一個full example of this

+0

這不是一個Visual Studio解決方案。 所以我的VS中沒有任何web.config文件。 – 2015-03-13 13:17:40

+0

然後找到你的web.config文件:)。最糟糕的情況下,您可以直接從Azure上的站點的D:\ home \ site \ wwwroot文件夾編輯它 – 2015-03-13 18:09:27