You can find (just about) anything on Medium — apparently even a page that doesn’t exist. Maybe these stories will take you somewhere new?
You can find (just about) anything on Medium — apparently even a page that doesn’t exist. Maybe these stories will take you somewhere new?
Well I'm writing this to you after wasting 8 hours of my life debuging a setup of uswgi on ubuntu with upstart and nginx. What a painful, horrible task. So I thought I'd save you the trouble and give you a almost foolproof set of configuration, tips and explanations so you can tell exactly how to get your stuff sorted. This my friends is the sum knowledge of my pain and stackoverflow threads I hav
Nginxチューニング nginx最大限にスピードを出すために、設定パラメーターをチュニングしました。 nginx設定例 user www-data; pid /var/run/nginx.pid; worker_processes auto; worker_rlimit_nofile 100000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; events { worker_connections 2048; multi_accept on; use epoll; } http { server_tokens off; sendfile on; tcp_nopush on; tcp_nodelay on; access_log o
nginx is a small and fast webserver which generally outperforms most of the alternatives out of the box, however there is always room for improvement. In addition to operating as a web-server nginx can also be used as reverse HTTP proxy, forwarding requests it recieves to different back-end servers. Optimizing nginx webserver. Optimizing nginx reverse proxy. General Tuning nginx uses a fixed numbe
一月ほど前に 社内Gyazoの画像をAmazon S3に逃がしてスケーラブルに運用する - 酒日記 はてな支店 というエントリを書いて一段落と思いきや、そのサーバには社内向けの nopaste アプリも同居しており、気がつけばテキストファイルが10GB以上積もっていたのでした… 社内 nopaste アプリの実装はDBなどを使用せず単にテキストファイルを保存しているだけだったので、ファイルを gzip して nginx の http_gzip_static_module を使って配信したらディスクを節約できていいんじゃないか、と思いついたのですが、Accept-Encoding: gzip でないクライアントからアクセスすると 404 になってしまうので圧縮前のファイルが消せない。 今時ブラウザで対応していないものは少ないとはいえ、curlとか各種言語のHTTPクライアントでアクセスする場
What started as a dream for a worldwide library of sorts, has transformed into not only a global repository of knowledge but also the most popular and widely deployed Application Platform: the World Wide Web. The poster child for Agile, it was not developed as a whole by a single entity, but rather grew as servers and clients expanded it’s capabilities. Standards grew along with them. While growin
Part 1: Lessons learned tuning TCP and Nginx in EC2 January 2nd, 2014 by Justin Our average traffic at Chartbeat has grown about 33% over the last year and depending on news events, we can see our traffic jump 33% or more in a single day. Recently we’ve begun investigating ways we can improve performance for handling this traffic through our systems. We set out and collected additional metrics f
Introduction When it comes to handling requests for web application servers and serving static content, the long tried and tested Nginx is an extremely popular choice nowadays. As you work with docker and containerize your applications, having Nginx serving them likewise makes sense for most situations. After all, these containers afford you to port applications easily, scale fast and add another
この記事は MySQL Casual Advent Calendar 2013 の 12 日目です。 みんな大好き Nginx + Lua ですが、その Lua から MySQL が叩けるとなると、Nginx だけでウェブアプリケーションが書けちゃうという夢が広がりますね。 難しそうというイメージがあるかもしれませんが、実は OpenResty を使うと、そんな環境が簡単に作れてしまうので、今日はその方法を紹介します。 ngx_openresty のインストール 今回は Ubuntu 12.04 での例ですが、ほとんど同様の手順で CentOS 6.5 でも動くことを確認しています。 *1 $ sudo apt-get -y install gcc make libpcre3-dev libssl-dev perl5 wget $ sudo apt-get -y install libmy
A guide to optimizing Nginx for maximum performanceMost setup guides for Nginx tell you the basics - apt-get a package, modify a few lines here and there, and you’ve got a web server! And, in most cases, a vanilla nginx install will work just fine for serving your website. However, if you’re REALLY trying to squeeze performance out of nginx, you’ll have to go a few steps further. In this guide, I’
Most setup guides for Nginx tell you the basics - apt-get a package, modify a few lines here and there, and you’ve got a web server! And, in most cases, a vanilla nginx install will work just fine for serving your website. However, if you’re REALLY trying to squeeze performance out of nginx, you’ll have to go a few steps further. In this guide, I’ll explain which settings in nginx can be fine tune
Ben Wilber on twitter github GetGlue Realtime pixel tracking with nginx, syslog-ng, and Redis Pixel tracking is all over the internet. Everything from simple page loads to sophisticated ad impression tracking uses web beacons in one form or another. While it used to be sufficient to just process your access logs offline, that is simply no longer the case. We now require sophisticated realtime anal
UPDATE: 2014-04-10 openssl version has been updated to openssl-1.0.1g. It is strongly recommended to use openssl-1.0.1g or later to mitigate the Heartbleed vulnerability. Last August, a new attack leveraging HTTP compression called BREACH was uncovered at Black Hat USA 2013 and some mitigations against it were disclosed alongside. Thereafter, there have been plenty of ongoing discussions among dev
リバースプロキシ/ロードバランサ配下のApache HTTP Server(以降、単にhttpdと記す)ではmod_rpafというモジュールを使用すると、アクセス元のIPアドレスを正しく取得して、そのIPアドレスでログに出力したり、アクセス制御を行ったりすることができるようになります。 今回の記事の前半ではこのmod_rpafについてインストール方法や設定方法について説明します。 後半ではmod_rpafを使ってもアクセス制御ができない問題が発生して、それを解決した経緯などを紹介します。具体的にはロードバランサとしてAmazon Elastic Load Balancingを、プロキシサーバとしてnginxを、バックエンドサーバとしてAmazon Linux 2011.09のhttpdを使ったときにアクセス元IPアドレスによるアクセス制御がうまくできない問題が発生しました。このあたりにご興
最近は apache をインストールする機会が無いので htpasswd コマンドが無い場合があるので、代用として python でワンライナーを書いてみた。要は nginx で Basic認証かけたいときに一瞬困ったので、そのメモです。 python -c "from crypt import crypt; user = raw_input('username: '); passwd = raw_input('password: '); print '--\n%s:%s' % (user, crypt(passwd, 'AB'));" 最後の 「AB」 の部分は適当に。 アウトプットは以下のようなイメージになります。 $ python -c "from crypt import crypt; user = raw_input('username: '); passwd = raw_inp
このサイト、実は最近Apacheからnginxに移行を試みています。Apacheで利用していたBasic認証をnginxでも行いたいなと思って調べてみました。 このサイトはWordPressで公開しておりますので、/wp-admin/ へのアクセスに対してBasic認証を施したいと思います。今回はnginxでのBasic認証を設定してみます。 nginxの設定のうちserver { } で囲われている部分に「/wp-admin/」へアクセスした場合にはBasic認証を書けるような設定を書きます。 1. server{ } の中に location /wp-admin/ {} を使って認証が必要な旨記載します この設定で「/wp-admin/」へのアクセスを行うときにはBasic 認証が必要になります。 server { listen xxx.xxx.xxx.xxx:80; root /pa
What the Red Means The lines that the user needs to enter or customize will be in red in this tutorial! The rest should mostly be copy-and-pastable. About Nginx Nginx (pronounced as 'engine x') is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev that is flexible and lightweight program when compared to apache. The official nginx documentation is here. Prereq
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く