Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajsalemo/php-apache-custom-startupscript
Customize apache2.conf with libapache2-mod-security2 to remove the 'Server' response header from all requests.
https://github.com/ajsalemo/php-apache-custom-startupscript
apache apache2 azure cloud container docker linux php php-74 startup-script
Last synced: about 1 month ago
JSON representation
Customize apache2.conf with libapache2-mod-security2 to remove the 'Server' response header from all requests.
- Host: GitHub
- URL: https://github.com/ajsalemo/php-apache-custom-startupscript
- Owner: Ajsalemo
- Created: 2021-11-15T21:58:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-15T22:59:37.000Z (about 3 years ago)
- Last Synced: 2024-11-18T22:41:16.727Z (about 1 month ago)
- Topics: apache, apache2, azure, cloud, container, docker, linux, php, php-74, startup-script
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP-Apache-Custom-StartupScript
Customize apache2.conf with libapache2-mod-security2 to remove the 'Server' response header from all requests. This sample was made to deploy on Azure Linux Webapps with the use of the [custom startup script](https://azureossd.github.io/2020/01/23/php-custom-startup-script-app-service-linux/) set under `/home/site`.
- `apache2.conf` is used to copy over the existing conf file under `/etc/apache2/apache2.conf`so we can bring our own configuration
- In `apache2.conf` we set `SecServerSignature` to " ", in conjunction with `libapache2-mod-security2` in `startup.sh`, this effectively removes the `Server` header on all responses.