hi all,
I am running ubuntu 10.10 on my system.
I am trying to change the header of Apache2 Server using the mod_header. The objective is that no one should be able to retrieve the Apache banner, OS, etc, by telnetting into the system. I know the header can be totally taken off with the
directive, but I would instead like to change it to something misleading rather than switch off the signature, so that the hacker is misled ?!?
I used the following command :-
I checked the links to the headers.load file has been added in the /etc/apache2/mods-enabled directory. Also the headers.load file is pointing to the correct file as under :-
Quote:
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
|
I have included the following command in the /etc/apache2/apache2.conf file and expected it to set the server header to the string between the double quotes. But it didn't work !?!
Quote:
Header set "AnArbitaryServerNameAndVersion"
|
Also let me know how to find out the status of the shared objects loaded by apache2 at any time. The /etc/apache2 -l command lists only the compiled modules and not the modules enabled using the a2enmod command.
Plz help me out. Thanks in advance
nishith