Ok, so I haven't messed much with apache modules, but I've done my fair share of security research and lately (though atm I'm vulnerable) I've been preparing to lock down my server. One thing that always bugged the shit out of me was the damn Apache Server header which exposes that you're using apache. Within the default install of Apache you can disable all traces of Apache up to the &quot;Server&quot; header. No matter what on a default install of apache the end user can, for instance (in Google Chrome) hit F12, go to the network tab, hit refresh and click the first link and view the headers, which tells the end user that you are running Apache...even if no version is visible, it doesn't matter as Apache is only in v2...so the would be attacker can begin their attack based on the knowledge of your server software.

The solution? mod_secuirty2
Now, I've done the searching and it's actually kind of difficult to find the bare, already compiled file mod_security2.so, and who knows what else the end-user threw in there. All tutorials I've found tell you to compile, which is actually the way to go, but I'm sick of broken dependencies, etc so if I can, I try not to compile from source, but instead download the outdated binary in the repositories. Hey, so long as it does the job, right?

So, to install mod_security2 on Ubuntu, open terminal and run the command:
[code:1:c30a676f75]sudo apt-get install libapache-mod-security[/code:1:c30a676f75]

Now go to your apache2 &quot;mods_enabled&quot; directory (usually /etc/apache2/mods-enabled), create a blank file, and name it security2.load and copy/paste the code:
[code:1:c30a676f75]LoadModule security2_module /usr/lib/apache2/modules/mod_security2.so[/code:1:c30a676f75]

Next create another empty file, name it security2.conf, and copy/paste the code:
[code:1:c30a676f75]&lt;IfModule&gt;
SecServerSignature &quot;Microsoft-IIS/5.0&quot;
&lt;/IfModule&gt;[/code:1:c30a676f75]

Replace &quot;Microsoft-IIS/5.0&quot; with whatever you want, save and restart apache