@Thomas Sjödin Dahl , Thanks for the great question. While I’m discussing this internally with our product engineering team.
It appears that there’s a directive missing in the Nginx configuration files.
port_in_redirect off;
Kindly update the Ngnix config and then check.
To better assist you on this, please provide more details about your scenario.
What specific issue are you experiencing? Do you receive any error messages?
Furthermore, Azure App Service on Linux images using PHP 8.x are now bundled with NGINX instead of Apache. The use of .htaccess files will not work for NGINX as these are used for Apache only. This will require the need to setup a custom startup script and modifying the existing NGINX site configuration.
Checkout this doc -Configuring NGINX Rewrite Rules for Azure App Service blessed images running PHP 8
Relevant discussion thread: Azure App Service: Unable to deploy PHP 8.0-based applications with Composer enabled