How ti fix the “You do not have permission to view this directory or page.” issue in Azure web app services?

可紊 提交于 2020-01-25 09:51:26

问题


I have a simple web app which if I deploy to Azure through Intelij (Using Azure App plugin ) the app works perfectly. But when I tried deploying using Jenkins the log says deployment successful , but when I try to navigate to the site it says "You do not have permission to view this directory or page." Am I missing anything ?

As per my understanding as My project is working fine when deployed using Intelij, but not working through Jenkins, so the problem will be in my Jenkins Job. Here is the configuration I am using : Publish Files Files :target\spring-mvc-example.war Source Directory(optional):target Target Directory(optional): webapps


回答1:


Could you please restart the website and check once.

For testing/debugging purposes you can turn on the Azure detailed messaging, and turn back off when its ready for production. To do so, you have to follow these two steps,

Login to Azure > App Services (left side menu) > Your Web App > Diagnostics logs (search box is at the top if you can't find it), then turn on Detailed Error Messages or turn on all of the logging options, up to you. Now add the following in your Web Config file, In your Web Config file add BEFORE system.web closing tag, . Similarly, add BEFORE . Finally, upload the Web Config to Azure and cross your fingers. If you follow the steps correctly, that will show the error messages in detail and hopefully from there



来源:https://stackoverflow.com/questions/55561689/how-ti-fix-the-you-do-not-have-permission-to-view-this-directory-or-page-issu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!