Azure App Service seems to ignore Nginx configuration when restarted PHP8.1 Linux

DBLJoey 51 Reputation points
2023-06-30T08:24:16.8766667+00:00

We got some problems with some of our Web Apps, i had several slots available on a web server that still worked on this morning but suddenly some of them stopped working.

To test if the problem was on the Azure side i tried restarting one of our slots. The one i restarted were crashing immediately.

The logs are showing that it's not serving from the wwwroot/public folder but is trying to search for the wwwroot instead. Not sure what is changed but definitely something is changed on Azure side. Looks like the nginx config location is moved or something like that.

We are running a PHP8.1 Linux Web App with Nginx with a starting command to copy the nginx configuration to it's location with the following bash script:

#!/bin/bash

cp /home/site/default /etc/nginx/sites-available/default service nginx reload

Somehow it seems to ignore that config location right now after restarting.

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

Answer accepted by question author
  1. Grmacjon-MSFT 19,491 Reputation points Moderator
    2023-07-07T03:15:00.2733333+00:00

    Hi @DBLJoey ,

    Thanks for your patience. This issue has been resolved by the product group so your application should be working now. please restart your application and let us know if you are still facing this issue.

    Best,

    -Grace

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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