When using the Azure App Service with a PHP 7.x Runtime Stack,
.htaccess files could be used to point Apache's
DocumentRoot to the
public/ directory (absolute:
/home/site/wwwroot/public). This is required for e.g. Laravel-based applications.
With the new PHP 8.0 Runtime Stack, Apache has been replaced with nginx. As nginx does not support the usage of
.htaccess files, the document root can not be changed. As I am required to use PHP 8, my application can no longer be deployed.
I've tried to change the
/etc/nginx/sites-available/defaultconfiguration with help of
sedbut this did not work due to quoting issues.
Using a custom kudu
.deploymentscript does also not work as kudu is not able to access the full Docker environment (e.g.
service restart nginxdoes not work).