Web Server

[How To] Disable SSLv3 for Apache in WHM cPanel

apache logo

After HeartBleed, Poodle (Padding Oracle On Downgraded Legacy Encryption) is another exploit recently discovered affecting SSL version3. To disable SSL version 3 for Apache in WHM cPanel, you can follow below steps: 1) Login in WHM and go to Service Configuration > Apache Configuration > Include Editor 2) Click on the Pre Main Include and select All Versions option from …

Read More »

[How To] Allow htaccess override in Apache

apache logo

The htaccess override is by default disabled in the Apache Webserver. If you wish to enable htaccess override then small change is required in the Apache configuration file. 1) CentOS/RHEL: Backup the Apache configuration file "http.conf" Open the "http.conf" file in your favourite editor and look for the string "AllowOverride". Change it from "AllowOverride None" to "AllowOverride All". Make sure …

Read More »

[How To] Automatically start Tomcat Service on boot in RHEL/CentOS/Ubuntu

tomcat

The Apache Tomcat is widely use in the Application servers. Sometimes, naive users are not aware of starting/stopping tomcat service. Also, Apache Tomcat service auto start is required in case of server reboot. To achieve this, Apache Tomcat should be added in the desired runlevel with a script, as explained in the below steps. 1) Create script name tomcat containing …

Read More »

Tomcat manager login details

To reset Tomcat manager password, follow simple steps. 1) Got to the apache-tomcat directory and open file following in your favorite editor cd /usr/local/apache-tomcat-6.0.20/conf/ vi tomcat-users.xml Part of file contents before update. <tomcat-users> <!-- <role rolename="tomcat"/> <role rolename="role1"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> --> </tomcat-users> Now , update the file as follows <tomcat-users> …

Read More »

Difference between mod_deflate and zlib.output_compression

apache logo

Most of the SEO, Developers are concern about the website load time, and question about the compression from the server end. The compression is achieved from both PHP zlib output_compression and Apache's mod_gzip (old Apache version) , mod_deflate. But the one question remains unanswered is that which compression method gives good compression. this post is going to cover the same …

Read More »

Permanent redirect from http to https in .htaccess

The following redirect rules can be used in the .htaccess for permanently redirecting http to https (secure connection) in Apache with SSL. RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L] or RewriteEngine on Options +FollowSymLinks RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://www.%{SERVER_NAME}%{REQUEST_URI} [L,R]

Read More »