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

varnish wordpress

Don’t mix: Varnish and Vary: User-AgentW3 Total Cache sends “Vary: User-Agent” when using Browser Cache. This effectively renders Varnish useless, i.e. brings cache hit rate extremly down because a copy is saved for every User-Agent out th…

varnish nginx wordpress

http://stackoverflow.com/questions/8026763/nginx-port-in-redirect-not-working # Add trailing slash to */wp-admin requests. rewrite /wp-admin$ $scheme://$host$uri/ permanent; https://codex.wordpress.org/Nginx 80 varnish 8080 nginx の場合に…

maxvnodes

vnodeの不足でvlruwk stateになることがあった。 systat -vmstat number of vnodes actually allocated (`numvn'), and number of allocated vnodes that are free (`frevn').https://www.freebsd.org/cgi/man.cgi?query=systat Suddenly slow lstat syscall…

varnish

3.0 夏に出したVarnishCache入門をPDFで公開しました – cat /dev/random > /dev/null &4.0 Varnish 4.0 Release Party in Tokyoで発表してきました – cat /dev/random > /dev/null & http://www.slideshare.net/xcir/v4rp-tokyohttp://qiita.com/koudaiii/it…

OpenStack用FreeBSDイメージを作る

http://docs.openstack.org/ja/image-guide/content/example-freebsd-image.htmlbsd-cloudinit を使用する。http://pellaeon.github.io/bsd-cloudinit/root は freebsd ユーザともにランダムなパスワードが設定される。 freebsd ユーザのパスワードは nova g…

date_default_timezone_set( 'Asia/Tokyo' );WordPressだけが php-fpm のログのタイムゾーンがおかしいので対応してみた | レンタルサーバー・自宅サーバー設定・構築のヒント

自動起動 Upstart

ここでは、Ubuntu 14.04 でのサービスの管理・設定についてご紹介します。 管理の方法として、System V init と Upstart の2種類があります。Linuxmania: サービスの管理・設定(Ubuntu) OpenStack (Juno)は apache2 以外は Upstart Ceph は Upstart

github デプロイ

コレも兼用しようと思ったらダメだった。1リポジトリにつき1keyだそうで。 https://help.github.com/articles/error-key-already-in-useOnce a key has been attached to one repo as a deploy key, it cannot be used on another repo. If you're running…

figlet Fun On The Terminal Part 1 - Get ASCII-FIED

[PHP] PHP5.4 + Apache 2.4でSegmentation fault — digape.comHTTP pipelining と Apache 2.4 (worker or event) + mod_php の組み合わせで問題があるようだ。FreeBSD 10.0 Apache+PHP Segmentation fault | The FreeBSD Forums56984 – Random and frequent …

Apache FreeBSD Listen queues soacceptqueue somaxconn

足りないと overflow kernel: sonewconn: pcb 0xfffff801104b4620: Listen queue overflow: 193 already in queue awaiting acceptance 標準だと128 kern.ipc.soacceptqueue (default: 128) # netstat -Lan Current listen queue sizes (qlen/incqlen/maxqle…

最短一致 echo preg_replace("/<strong>.*?<\/strong>/","<strong>じゃがいも</strong>",$str);「?」をつけることで最短一致になるー。 [PHP]preg_replaceで正規表現を使った置換+後方参照のメモ</strong>

OpenLDAP

https://www.freebsd.org/doc/en_US.ISO8859-1/articles/ldap-auth/ldap.html https://www.freebsd.org/doc/en_US.ISO8859-1/articles/ldap-auth/client.html セキュリティ 考えておこう! OpenLDAPのセキュリティ設定 (1/3):OpenLDAPで始めるディレクトリ…

ansible

http://docs.ansible.com/ansible/intro_inventory.htmlhttp://yteraoka.github.io/ansible-tutorial/ copy Files modules — Ansible DocumentationAnsible ~copyモジュール~ - Qiitaansible ディレクトリ削除http://blog.withsin.net/2014/12/22/ansible-…

ansible テンプレート 変数

ファイル名(変数)の拡張子を除いた部分を取得 - name: Common tasks => Ensure symlinks for utilities exist file: src=~/bin/{{ item }} dest=~/bin/{{ (item | splitext)[0] }} mode=755 state=link with_fileglob: - bin/*Ansible roles: change file ex…

SMTP-AUTH cert

SSL/TLS STARTTLS の確認 # smtpサーバにSSL接続するとき $ openssl s_client -connect localhost:smtps # smtpサーバに接続して、STARTTLSするとき $ openssl s_client -crlf -starttls smtp -connect localhost:smtp opensslでSMTPS/STARTTLSのテストをす…

ツイートボタン不具合 - niconicoの不具合報告掲示板prototype.js 1.6 と platform.twitter.com/widgets.js の組み合わせはエラーが出て ツイートボタンが表示されない。 All of the web pages shared in this thread that are experiencing issues are usin…

IPエイリアス Linux Ubuntu

1つのNICに複数のIPアドレスをアサインする - かえでのWebログ グローバルIPとローカルIPをひとつのethにエイリアスで振り分けた - ヌキのやる気のないエンジニアブログ

OpenStack (Juno)

スナップショットに時間がかかると失敗する。 glance.api.v1.upload_utils NotAuthenticated: Authentication requiredBug #1407592 “Snapshots fail to upload larger (~30G+) images, wi...” : Bugs : OpenStack Compute (nova) keystone.conf expiration_…

OpenStack + Ceph

OpenStack + Rados Block Device(RBD) OpenStack 連携 ☆ OpenStack + Ceph 連携 - ジェダイさんのブログ ↓ ☆ Welcome to Ceph — Ceph DocumentationMAASとJujuでつくるOpenStack環境構築入門 IceHouse対応版 - OpenStack最新情報セミナー 2014年10月OpenStac…

Ceph チューニング

ファイルシステム xfs xfs > ext4 EXT4 vs XFS vs Btrfs vs ZFSをfioでベンチマークを取ってみました。 - Qiita noatime ceph-deploy → xfs noatime /dev/sdb1 on /var/lib/ceph/osd/ceph-0 type xfs (rw,noatime,inode64) ネットワーク Ceph は OSD サーバ…

SELECT DATE_FORMAT(regist_time, '%Y-%m') as regist_time, COUNT(*) as count FROM users GROUP BY DATE_FORMAT(regist_time, '%Y%m');MySQLで月別、日別、時間、曜日別にレコード数を集計する方法 - おおらかにいこう

DNSBL AHBL 停止に伴う SpamAssassin の誤判定の修正

[メモ] The Abusive Hosts Blocking List(AHBL)がサービス停止 ヤメ記者SEの徒然なるままに…/ウェブリブログ To disable this RBL in your SpamAssassin config add this line to your local.cf file: score DNS_FROM_AHBL_RHSBL 0How to disable DNS_FROM…