A sample that shows how to override the default nginx.conf file in a PHP8 Azure Docker Container to do things such as edit/change headers. This quickstart was used for a quick basic scaffold for testing.
This specific repo removes the X-Powered-By header and the NGINX version from the Server header - but can be further expanded upon through the nginx.conf file.
- Copy the custom startup script to /home
- In the Azure Portal go to the Web App -> Configuration -> -> General Settings -> Startup Command
- Set the value to /home/<your_custom_startup_script_name>.sh
- Click Save