Articles

 Apache not running - No space left on device

Error: Not able to start apache even if you have enough free disk space. You may see an error...

 Authentication-Warning when sending email as apache: "No such user here"

Solution: Check if apache is added in the trusted-users file /etc/mail/trusted-users and also...

 CentOS 5x – Have the latest OpenSSL 1-0-2 running on Apache 2-2-3

CentOS 5.x is old and EOL. But there are still lots of servers running this version. I needed...

 Leverage Browser setup

Below config file needs to be done in your apache httpd.conf or htaccess file: <IfModule...

 Mask redirect

If you want your page to show the content of another file without changing the code in the url,...

 Redirect http to https with htaccess

http > httpsRewriteEngine On#First rewrite any request to the wrong domain to use the correct...

 Redirect https to http with htaccess

RewriteEngine OnRewriteCond %{HTTPS} =onRewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [L,R=301]

 Redirect main domain to subdomain using htaccess

RewriteEngine On#Redirect main domain to subdomainRewriteCond %{HTTP_HOST} !^$RewriteCond...

 Redirect non www domain to www domain - without https and htaccess

RewriteEngine OnRewriteCond %{HTTP_HOST} !^www\.RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1...

 Subdomain redirect to main using htaccess

RewriteEngine On#subdomain redirect to mainRedirectMatch 301 ^/sell/$ http://maindomain.com/

 mod_fcgid: HTTP request length 131410 exceeds MaxRequestLen (131072),

If you receive below error: mod_fcgid: HTTP request length 131410 exceeds MaxRequestLen (131072)...