@CheeseAndOnionScone , Thanks for the great question.
Yes. 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. You could setup a custom startup script and modify the existing NGINX site configuration.
Also, since PHP 8 images are defaulted to nginx/php-fpm . So, you will not need .htaccess, but can use rewrite rules to mimic .htaccess.
Kindly take a look at the sample: URL below for post_max_size=60M and | upload_max_filesize=20M
https://github.com/Azure-App-Service/nginx-fpm/blob/master/php.ini
Also, checkout the App Service article, for modifying the default site config
, and for steps to create the custom startup script
and the application settings
:
App Service PHP -8 Rewrite-rule
Additionally: please checkout these docs:
You may take a look at this third party blog to know - Convert Apache Rewrite Rules to NGINX Rewrite Rules | NGINX
You can configure using startup command.
Azure App Service on Linux FAQ | What-are-the-expected-values-for-the-startup-file-section-when-i-configure-the-runtime-stack-
Kindly let us know how it goes or you have any further questions.