I have a problem with deploying my web app Flask Html css

fb99 0 Reputation points
2024-05-24T08:17:11.8066667+00:00

Good morning,
I have deployed my webapp on azure, the problem is that when I try to access the site in question it shows me:
"You do not have permission to view this directory or page."
app.py:

app.run(host="0.0.0.0",port=8000)

Is there anything I need to do?
Thank you very much

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,022 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 18,646 Reputation points
    2024-05-28T23:25:55.9466667+00:00

    Hi @fb99 looks like there is an issue with permissions within Azure App Service that's preventing your web application from serving content correctly. what level of permission do you have? Here is one way to troubleshoot the issue:

    • Access the Azure portal and navigate to your App Service resource. Go to the "Configuration" section and ensure the following:
      • Web server: Make sure the web server (e.g., IIS) is configured to serve content from the expected directory where your Flask application resides.
      • Startup command: Verify that the startup command specified in your deployment process points to the correct entry point of your Flask application (e.g., python app.py).
    • I would also recommend accessing the deployment logs for your App Service resource. These logs might reveal specific errors or warnings during deployment that could be causing permission issues. Look for messages related to file access, startup failures, or configuration errors.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.