Category: Apache

Score An “A” On SSLLabs Server Test

Want an A on the SSLLabs server test? https://www.ssllabs.com/ssltest/ For Plesk create a file here:

and add the following:

For WHM/CPanel do this: a. go to Service Configuration -> Apache Configuration -> Global Configuration and set “SSL Cipher Suite” to:

b. go to Service Configuration -> Apache Configuration -> Include Editor -> Pre Main Include and add the following lines:

For a standalone Apache server try these:

For Nginx try these lines:

If you get capped at a B due to TLS Compression support you can add:

For older Apache versions this setting may not be available. In this case you can edit the init script (/etc/init.d/httpd) and add this line:

Qualys has a blog post on this subject which provided the Apache and Nginx configs: https://community.qualys.com/blogs/securitylabs/2013/08/05/configuring-apache-nginx-and-openssl-for-forward-secrecy  This forum post provided the WHM/Cpanel config: http://forums.cpanel.net/f185/cpanel-openssl-1-0-1c-higher-332001-p3.html#post1561101  

Read More »

Block wp-login.php On Single Site In WordPress Multisite

Take the case where you have a WordPress multi-site with many domains pointing to a single virtual host. When the site gets hit with a wp-login.php attack you want to password protect the wp-login.php script but just for the targeted site … not for every site in the multisite.  Here’s the .htaccess rules to accomplish this:

We set an environment variable based on the Host header and then require login from requests with the matching environment variable.

Read More »

Remove Authentication From A Subfolder

Let’s say you have a directory that is password protected:

Now you want to remove the password protection from a sub-folder like:

This can be accomplished by adding another Directory block like this:

Read More »

Apache mod_fcgi on CentOS 6.4

There are a lot of tutorials on how to install mod_fcgi with suexec out there but many are incomplete, outdated or just don’t work. One that does work is here: http://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-centos-6.2  

Read More »

Log X-Forwarded-For Headers

If your Apache instance is behind a proxy or load balancer then you’ll need to setup a custom log format to capture the X-Forwarded-For header so that you logs include the IP address of the client:

 

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.