You do not have permission to view this directory or page. after clicking on default domain
You do not have permission to view this directory or page.
Azure App Service
-
VenkateshDodda-MSFT 22,401 Reputation points • Microsoft Employee
2023-11-02T05:37:08.78+00:00 @bimrely Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
I understand that when you are requesting the root url of the app service you are facing this error "You do not have permission to view this directory or page" correct me if my understand is wrong.
The root reason is that there is no default page in your Azure website. The default document is the web page that is displayed at the root URL for a website. The first matching file in the list is used.
Web Apps might use modules that route based on URL, rather than serving static content, in which case there is no default document as such.
You could add the default document in the project root folder and set it as default page under Default Documents in Configuration on the Azure portal and save the setting.
I would suggest you enable the application logging and review the log stream logs to know more what the exact error is.
Feel free to reach back to me if you have any further questions.
-
bimrely 0 Reputation points
2023-11-02T11:02:38.95+00:00 Thanks for replying, I'm using modules that route based on URL, I've even tried to add the default document as index.js which is my app then it shows raw code instead of "welcome noble" which is my home page. I've been stuck in this for almost a month and have not been able to find the answer. If this is not solved asap then we have to move to AWS or Firebase.
-
VenkateshDodda-MSFT 22,401 Reputation points • Microsoft Employee
2023-11-03T06:47:41.1433333+00:00 @bimrely Thanks for your response Sorry for any inconvenience caused on this.
- Could you please elobrate more on your requirement what are you to trying to do.
- what all things that you have configure in your app service(custom domains, redirect urls etc.,)
- Which runtime your application is running + what is the expected behavior and current facing issues.
- Your app service name and Last 4 digits of your subscription Id.
These would be more helpful to understand better and also to assist you further on this.
-
bimrely 0 Reputation points
2023-11-06T11:35:14.7466667+00:00 We created a web app and started deploying our code via Azure only by following all the steps in the deployment centre. The app was deployed successfully but when we clicked on the URL it said "You do not have permission to view this directory or page". We tried every step that was available online.
We have not customized any configuration settings we are just using default settings.
Node - ~18 runtime stacks our app is using.
"bimrely" is the app service name and "ce416" is the last 4 digits of the subscription ID.
-
VenkateshDodda-MSFT 22,401 Reputation points • Microsoft Employee
2023-11-07T09:30:26.16+00:00 @bimrely Thanks for sharing the requested details.
When I tried to request the root URL of your app, I see that you have configured Azure AD authentication and post the authentication is getting succeeded it is redirecting to the root URL of the app.Just want to check if we disable the authentication and when you request the root URL are you facing the same issue?
Also, This would need one on one offline support and I will suggest you open a support ticket to look into the logs.In case if you don't have the support plan then please send an email with your SubscriptionID and link to this thread to AzCommunity@microsoft.com with subject line as "ATTN: Venkatesh" so I can enable one time free support on your subscription to assist you further.
-
bimrely 0 Reputation points
2023-11-07T10:55:25.7233333+00:00 Yes! Even after disabling the authentication, we are facing the same issue. Thank you for further guidance, I'm mailing on the given email ID for further assistance.
Sign in to comment