question

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT asked ·

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

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-webapps-content-deployment
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered ·

@ 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.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DarioAiroldi-6387 avatar image
0 Votes"
DarioAiroldi-6387 answered ·

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

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.