Category: Webservers

Redirect With Query String

Let’s say you have URL like this: http://acme.com/my-old-url that you want to redirect to a new url: http://acme.com/new-url This is easily accomplished with a rewrite rule:

But what if the source URL has a url parameter like: http://acme.com/my-old-url?id=27 In

Read More »

How-to Mitigate Bittorrent DDOS Attacks

You’ll know that you’re getting hit with a Bittorrent attack when the server slows down and you see log entries referencing:

Here’s a good article about one sysadmin’s struggle with this type of attack: http://blog.carlesmateo.com/2015/01/23/stopping-a-bittorrent-ddos-attack/ There are a number

Read More »

Block XSS on Apache or Nginx

Here are some handy Apache rewrite rules for blocking cross site scripting (XSS) attacks:

And here are similar rules for Nginx:

We gathered these rules from several sources around the net so they are not original but it’s

Read More »

Apache2 With mod_fcgid On CentOS 6.2

Need mod_fcgid on a CentOS 6.2 or similar server? Check out this great how-to: https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-centos-6.2 I especially like the use of suexec. This howto worked on the first try! There are not many actual working mod_fcgid howtos! One issue that

Read More »

Disable PHP zlib.output_compression

If you need to disable zlib output compression from the .htaccess file, then just add the following line to the top of the file:

 

Read More »

Get a free consultation from Reliable Penguin

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