Testing your new server with a hosts file is a 4 step process:
On Redhad, edit /etc/mail/sendmail.mc and add the following line towards the end of the file before the first MAILER line:
FEATURE(`dnsbl', `sbl.spamhaus.org',`"Rejected due to Spamhaus listing see http://www.abuse.net/sbl.phtml?IP=" $&{clientaddr} " for more information"')dnl
Then run:
cd /etc/mail/
make
/sbin/service sendmail restart
Original post blogged on b2evolution.
Here's a simple logrotate script for Tomcat:
/usr/tomcat/apache-tomcat-5.5.27/logs/*.log { rotate 90 lastaction /sbin/service tomcat restart endscript }It should be placed at:
/etc/logrotate.d/tomcat
Original post blogged on b2evolution.
Create a .htaccsss file containing the following lines:
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
Original post blogged on b2evolution.