https://github.com/ajsalemo/php8-nginx-custom-startupscript
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.
https://github.com/ajsalemo/php8-nginx-custom-startupscript
azure containers docker nginx paas php php-fpm php8 startup-script
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ajsalemo/php8-nginx-custom-startupscript
- Owner: Ajsalemo
- Created: 2021-08-18T20:38:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-24T17:12:31.000Z (over 4 years ago)
- Last Synced: 2025-05-21T05:36:23.267Z (9 months ago)
- Topics: azure, containers, docker, nginx, paas, php, php-fpm, php8, startup-script
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP8-NGINX-Custom-StartupScript
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](https://docs.microsoft.com/en-us/azure/app-service/quickstart-php?pivots=platform-linux) 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.
1. Copy the custom startup script to /home
2. In the Azure Portal go to the Web App -> Configuration -> -> General Settings -> Startup Command
3. Set the value to /home/.sh
4. Click Save