Skip to content

Instantly share code, notes, and snippets.

@lamanotrama
lamanotrama / nginx -V
Created February 4, 2016 11:49
my nginx -V
$nginx -V |& sed 's/ --/\n/g' nginx version: nginx/1.9.9
built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)
built with OpenSSL 1.0.1f 6 Jan 2014
TLS SNI support enabled
configure arguments:
prefix=/etc/nginx
sbin-path=/usr/sbin/nginx
conf-path=/etc/nginx/nginx.conf
error-log-path=/var/log/nginx/error.log
http-log-path=/var/log/nginx/access.log
@lamanotrama
lamanotrama / nginx-stream
Created February 24, 2016 04:09
なぜかリクエストの度にlookupしてくれない。streamの設定
stream {
upstream deis {
server deis-elb-01.aya.staging:2222;
}
server {
listen 2222;
# resolve ELB's hostname to IP
mruby_stream_code '