FreeBSD Setup Timezone



cp /usr/share/zoneinfo/Asia/Calcutta /etc/localtime



REF
http://www.cyberciti.biz/faq/howto-set-date-and-time-timezone-in-freebsd/

Tuned MySQL Note


skip-external-locking
如果你有多台服务器使用同一个数据库目录(不建议),那么每台服务器都必须开启external locking;
skip-host-cache
skip-name-resolve
max_connect_errors = 1844674407370954751



REF:
http://jeremy.zawodny.com/blog/archives/011421.html
http://www.bootf.com/594.html
http://blog.wu-boy.com/2009/11/mysql-%E5%BF%85%E8%A6%81%E4%BF%AE%E6%AD%A3%E4%B8%80%E4%BA%9B%E9%A0%90%E8%A8%AD%E5%80%BC-performance-tunning/
http://dba.stackexchange.com/questions/9039/sudden-mysql-error-unable-to-connect-to-any-of-the-mysql-hosts

Apache Rewrite HTTP to HTTPS




RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]



Ref: https://www.sslshopper.com/apache-redirect-http-to-https.html