删除hostingstart.html时的Linux Web应用程序404 [英] Linux web app 404 when removing hostingstart.html
问题描述
我用Node.js 8.9的运行时堆栈创建了一个新的Linux Web App.创建Web应用程序后,默认的hostingstart.html位于/home/site/wwwroot/中,页面将解析.如果我将hostingstart.html的名称更改为index.html页面 将不再解决,我将收到http 404响应.
I have created a new Linux Web App with runtime stack of Node.js 8.9. Once the web app is created the default hostingstart.html is located in /home/site/wwwroot/ and the page will resolve. If I change the name of hostingstart.html to index.html the page will no longer resolve and I will receive a http 404 response.
我查看了默认的apache2配置,看来该页面无法提供服务,我需要更改哪种配置以允许index.html正常工作,而不需要hostingstart.html?
I have had a look at the default apache2 configuration and it appears this is not serving the page, what configuration do I need to change to allow index.html to work instead of requiring hostingstart.html?
克里斯
推荐答案
C.B.M,我们祝福的图片期望index.html文件将被命名为hostingstart.html.因此,为了使应用程序成功运行,必须将index.html设置为hostingstart.html.
C.B.M, our blessed images have an expectation that the index.html file will be name hostingstart.html. As a result, it's viewed as a requirement that your index.html must be set as hostingstart.html in order for the app to function successfully.
这篇关于删除hostingstart.html时的Linux Web应用程序404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!