Wordpress on AppService (Nginx and Linux)

admin expertce 0 Reputation points
2024-02-24T12:34:02.9166667+00:00

Hello,

Two questions:

  1. I am using wordpress on Azure appservice. Can you please advise where are the following files located on the host machine when I ssh from Azure portal into the host:

nginx.conf,

log files,

access logs,

location of the wordpress site content

  1. If I were to make entires into nginx.conf to write additional rewrite rules and more configurations what is the best way to do it. Can you please share step by step instructions.

thanks

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

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2024-02-24T18:01:42.0733333+00:00

    Hello,

    #1 Please see:

    Updating NGINX default configurations on Azure App services Managed WordPress

    https://techcommunity.microsoft.com/t5/apps-on-azure-blog/updating-nginx-default-configurations-on-azure-app-services/ba-p/3710146

    The logs are located in (replace slash with / as this editor won't let me post):

    /var slash log slash nginx

    The access logs are located in:

    /var slash log slash nginx slash access

    #2 Please see:

    NGINX Rewrite Rules for Azure App Service Linux PHP 8.x

    https://azureossd.github.io/2021/09/02/php-8-rewrite-rule/

    If this is helpful please accept answer.

    0 comments No comments

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.