How to configure Mod evasive DDoS Protection

Mod_evasive is an evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack. It is also designed to be a detection and network management tool, and can be easily configured to talk to ipchains, firewalls, routers, and etcetera. mod_evasive presently reports abuses […]

Read More

How to hide Apache version

It is possible to hide apache web server version and other information. This is done for security reasons. It is not a good idea to broadcast the version of the software that you are running on the server. You should have noticed the following details(or something similar) when an error page is displayed. Apache/2.2.9 (Unix) […]

Read More

How enable H264 streaming module apache

The H264 streaming module is a webserver plugin that enables HTTP pseudo-streaming, which includes a variety of features. Its features includes Timeshifting seek Allows you to immediately jump to any part of the video regardless of the length of the video or whether it has been downloaded yet. Virtual video clips Which when you got […]

Read More

How to disable Mod security for a domain in cPanel

Mod_security is an open source Apache module. This can be considered as firewall for web applications. It secures the system from the attackers. We use mod_security1 for Apache1.x and Apache 2.x uses mod_security2. In case of mod_security1, we can disable it for a domain using the .htaccess file. If you want to disable mod_sec for […]

Read More

How to disable Directory listing in apache

Apache Directory can be disabled for various reasons. To disable Apache directory listing on your website try the following steps. In a non-cPanel CentOS server 1. Locate your httpd.conf file. Normally it is located at /usr/local/apache/conf or /etc/httpd/conf/httpd.conf 2. Open the httpd.conf file in text editor and search for the following line Options Includes Indexes […]

Read More

Configure to listen on multiple ports

The Listen directive in the Apache configuration file can be used to make Apache to listen in a particular port or IP address or port combination. Listen 80 Listen 8000 In this format the Apache server listens on the given ports on all interfaces (IP addresses) which are up in the server. If you mention […]

Read More

Compression

Although Compression is a very important method of making your pages lighter and easier for users to download, it’s definitely going to cost you more CPU and on high load servers it’s not recommended. Mod_deflate Older versions of apache supports mod_gzip module for content compression. Latest versions of apache supports mod_deflate module for content compression. […]

Read More

Common HTTP error codes

Apache error codes are something that we come accross pretty frequiently. This article will throw some light to those frequently occurring errors codes. The article will help you to identify and troubleshoot the actual issue. Redirection 3xx This class of status code indicates that further action needs to be taken by the user agent in […]

Read More

Change the document root using .htaccess file

The public_html directory is your webroot directory. By default your website is loaded from public_html folder. If you create a website under a sub-folder and you want to display it when you type the domain name, add the following lines to your .htaccess file. RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.domain.com$ RewriteCond %{REQUEST_URI} !folder/ RewriteRule (.*) /folder/$1 […]

Read More

Apache error file size exceeded

Apache seems to crash with this error : [notice] child pid x exit signal File size limit exceeded (25). Solution: This usually means that a log file has grown too large for the system (generally 2Gb). A quick fix will be to run the following commands as root via SSH. /scripts/updatenow /scripts/biglogcheck -v If you have […]

Read More