Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
salman, Apologies for the delayed response from over the weekend.
Based on my understanding of your issue,
Just to highlight, You may FTP or SSH into App Service - please checkout this doc for the steps. Open an SSH session to a container in Azure App Service
You may also, navigate to your App Service via the Azure Portal.
Under the Development Tools section, select SSH then Go -->.
Modifying the default site config
You will want to make a copy of the existing configuration and place the file inside the /home/site directory.
cp
Once copied, edit the /home/site/default file and update the section below:
server
Creating the custom startup script
You will now need to create a custom startup script and save the file as /home/site/startup.sh
#!/bin/bash
In the custom startup script we are doing the following:
- Overriding the existing
/etc/nginx/sites-enabled/defaultfile with the/home/site/defaultfile. - Reloading the NGINX service to make the updates take effect.
Ref: Checkout this article for more info:
NGINX Rewrite Rules for Azure App Service Linux PHP 8.x
Deploy your app to Azure App Service using FTP/S
If the answer helped (pointed, you in the right direction) > please click Accept Answer to benefit the community find answers quickly to similar question.