where do i find the web.config file?

Mary Mwende 1 Reputation point
2021-02-15T13:26:59.507+00:00

68213-debug-console.jpgHi. I'm looking for the web.config file of my web app so that i can add this text > type="Redirect" url="https://CUSTOMDOMAIN.COM/{R:0}" to the action tag and redirect my azurewebsite to a custom domain. The problem is that i can't find this site and when i google how to find it i get suggestions from two years ago but the kudu scm doesn't look the same. Here's a pic of what it looks like now

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

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,821 Reputation points MVP Volunteer Moderator
    2021-02-15T13:44:30.49+00:00

    Hello @Mary Mwende
    For Windows hosting WebApp you can find your web.config in D:\home\site\wwwroot
    For Linux hosting WebApp you can find your web.config in home/site/wwwroot

    68302-image.png


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.