Linux Training in Coimbatore & Best Linux Server Administration Training Institute NUX SOFTWARE SOLUTIONS FREE DEMO CLASSES AVAILABLE Call us 096263 53489
We faced an issue recently where a redirect rule was not working irrespective of correctly specifying in .htaccess file. We checked in several ways but the issue was not resolved. Finally, my fellow admin suggested we add it directly in the virtual host in apache config file of the domain. And it worked!!!!. RewriteEngine on RewriteCond %{HTTP_HOST} ^webmail.yourdomainname.com RewriteRule ^/(.*)$https://www.google.com/a/yourdomainname.com/$1 [L,R=301]
You can use the following script to determine the IP/IPs from which maximum apache connections were made to the domain. less /usr/local/apache/domlogs/domain.com | awk ‘{print $1}’ | sort | uniq -c | sort -n