[MSDN Redirect] WebApp created on Linux OS always shows default Microsoft page

ajkuma 22,001 Reputation points Microsoft Employee
2020-02-17T06:24:31.647+00:00

Hello I have create Web app using following Config,

Publish: Code
RunTime Stack: .NET Core 3.1(LTS)
Operating System: Linux

I have created my website using React.js and working fine locally. I deployed on azure using FTP and when I hit https://{mywebappname}.azurewebsites.net, It shows me default page instead of my website home page.

Hey, .NET Core developers! Your app service is up and running.
Time to take the next step and deploy your code.

I also check that wwwroot contain all my website files. Is there anything missing here? Why it is not showing my website's home page?

Help would be appreciated!

Best

[Source] : https://social.msdn.microsoft.com/Forums/en-US/db355795-05b7-4b7e-a778-3f5fbd3b0877/webapp-created-on-linux-os-always-shows-default-microsoft-page?forum=azureappconfiguration

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

2 answers

Sort by: Most helpful
  1. ajkuma 22,001 Reputation points Microsoft Employee
    2020-02-17T15:16:26.513+00:00

    @ Sagar, Welcome to Microsoft Q&A!

    Apologies for any frustration with this issue.

    Firstly, just to highlight unlike Git-based deployments, FTP deployment doesn't support the following deployment automations:

    • Dependency restores (such as NuGet, NPM, PIP, and Composer automations)
    • Compilation of .NET binaries
    • Generation of web.config (here is a Node.js example)
      So, you would have to generate these necessary files manually on your local machine, and then deploy them together with your app.

    I understand you have already reviewed the deployment files & yes the default root path ( /) is D:\home\site\wwwroot, along with the deployment files, you should also include any custom deployment script with your code by adding a deployment file into the project’s root and specifying the deployment script (For specific start file). Review that your startup file is deployed to App Service and that it doesn't contain any errors.

    The default document is the web page that appears at the root URL for a website. The first matching file in the list is used. If the app uses modules that redirect based on the URL instead of providing static content, there is no need for standard documents.

    You may update the application settings to the following and then check:

    • WEBSITE_DYNAMIC_CACHE — 0
    • WEBSITE_LOCAL_CACHE_OPTION- Never
      For staging enable this else app will be cached and will not refresh on publishing.
    • WEBSITE_WEBDEPLOY_USE_SCM — false
      Set false else you will not be able to use VS to publish directly.

    Note that any changes you make outside the /home directory are stored in the container itself and don't persist beyond an app restart. Ensure that you're using App Service for Linux rather than a Windows-based instance

    You can also inspect the log files from Kudu console at https://.scm.azurewebsites.net/api/logs/docker to fetch more details on the issue.

    Kindly let us know how it goes for further investigation.

    0 comments No comments

  2. Dario Airoldi 1 Reputation point
    2020-04-09T20:52:16.77+00:00

    This can happen if any exception is thrown in the application startup phase.
    you can consult the application streaming log or log files from Kudu console to understand what errors are being thrown

    0 comments No comments