apache_security
This is an old revision of the document!
Warning: Undefined variable $state in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 130
Warning: Undefined variable $html in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 240
Warning: Undefined array key "page" in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 265
Warning: Undefined array key "page" in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 268
Apache Security
It is very important to keep your server secure. Hiding versions of php and apache are part of the security measures.
- Hiding PHP version
- hiding_apache_version - Page not found.
Hiding php version
If you run a curl on your website similar to the curl below, does it return php versions?
This is NOT secure. We will now make a simple change to the /etc/php.ini file to hide this
Example curl:
curl -LIsX GET lukeslinux.co.uk | grep phpTo hide the php value, turn the following value Off
expose_php = On;Restart apache and you are done. Test again by rerunning the curl command.
apache_security.1450802200.txt.gz · Last modified: 2024/05/23 07:26 (external edit)