2016-01-01から1年間の記事一覧

ubuntu 16.04 アップグレード

http://www.tecmint.com/upgrade-ubuntu-14-04-to-16-04/

varnish 4 redirect

vcl 4.0; sub vcl_recv { if (req.http.host ~ "^([-0-9a-zA-Z]+)\.([a-zA-Z]+)$") { return (synth (750, "")); } } sub vcl_synth { if (resp.status == 750) { set resp.status = 301; set resp.http.Location = "http://www." + req.http.host + req.url…

ipfw

FreeBSD 11 から table name が使える。以前は table num firewall_type を使う方法 冒頭の表にあるとおり、firewall_typeにファイルパスを指定するとrc.firewalでルールファイルの読み込みが行われるようになる。 https://decomo.info/wiki/freebsd/freebsd…

varnish と libvmod-cookie のインストール CentOS 7.0

https://github.com/varnish/libvmod-cookie から https://github.com/varnish/varnish-modules になった。2016/04varnish 4.0 は libvmod-cookie https://download.varnish-software.com/varnish-modules/varnish4.0/参考 VarnishとCookieとlibvmod-cookie…

rsync emacs バックアップファイル除外

# backup text files (e.g. from Emacs) - *~ - \#*\#http://unix.stackexchange.com/questions/48311/what-do-you-filter-exclude-list-when-doing-backup-with-rsync

munin smart plugin smartctl exit status 64

Problem is that (according to the man page) smartctl sets bit no 6 if there was an error in the past, so now while everything is alright, the exit code is numeric 64.http://serverfault.com/questions/461456/munins-smart-plugin-keeps-reporti…

spamassassin

SpamAssassin が何をしてるか - LGTM とても参考になる SpamAssassinに同梱されているプラグインの制御ファイルは標準では/etc/mail/spamassassinにインストールされます。制御ファイルのファイル名はプラグインが導入されたバージョン毎に異なり、次のよう…

HTTP/1.0 HTTP/1.1 wget

force-response-1.0 This forces an HTTP/1.0 response to clients making an HTTP/1.0 request. It was originally implemented as a result of a problem with AOL's proxies. Some HTTP/1.0 clients may not behave correctly when given an HTTP/1.1 res…

FreeBSD 仮想環境 cron

The periodic daily and periodic weekly jobs in /etc/crontab run find(1) for a couple of things. Part of the daily job is /etc/periodic/security/100.chksetuid and /etc/periodic/security/110.neggrpperm. One or both of those is fairly disk in…

RBL(Realtime Blackhole List) DNSBL

spamのblack list をDNSを利用して参照する。RBLはサービス名なので、一般的な名前としてはDNSBL。 RBL(DNSBL) の仕組み勉強 - うまいぼうぶろぐ FEATURE(dnsbl,`all.rbl.jp')dnl FEATURE(dnsbl,`sbl-xbl.spamhaus.org')dnl all.rbl.jp http://www.rbl.jp/al…

https://productforums.google.com/forum/#!topic/gmail/m3sjayZKdWc

varnish munin

4https://github.com/munin-monitoring/contrib/tree/master/plugins/varnish44.1https://github.com/munin-monitoring/contrib/pull/670/filesこの変更が必要

Varnish ストレージバックエンド

https://wiki.mikejung.biz/Varnish#Varnish_Storage_Backendsストレージバックエンドを分ける。Mailing List Archive: Multiple storage with multiple backends

varnish tuning

Performance – Varnish -p thread_pool_min=200 (default: 5) -p thread_pool_max=4000 (default 1000) -p thread_pool_add_delay=2 (default: 20ms, default in master: 2ms) -p session_linger=100 OR MORE (default: 0ms in <= 2.0.4 and 50ms in > 2.0.4…

varnish vary

VCLExampleFixupVary – Varnish

varnish ログ

Varnishのログはファイルではなく共有メモリに出力されます。 なので、ログを確認するには"varnishlog"という専用のコマンドを利用しますsuz-lab.com - このウェブサイトは販売用です! -&nbspsuz-lab リソースおよび情報 4.x フィルタリング $ varnishlog -…

varnish UAでキャッシュを分ける

varnish でuser-agent(のグループ) ごとにキャッシュする - うまいぼうぶろぐモバイルフレンドリーなサイトのキャッシュ - Qiita ↓varnishのモジュール GitHub - willemk/varnish-mobiletranslate: Tool to translate the latest mobile detect script into …