nginx実践入門

サポートページ

ダウンロード

本書のサンプルコードを以下のGitHubのリポジトリからダウンロードできます。

お詫びと訂正(正誤表)

本書の以下の部分に誤りがありました。ここに訂正するとともに、ご迷惑をおかけしたことを深くお詫び申し上げます。

(2018年8月6日最終更新)

P.137 1行目

誤

sites-enabiled/rails.example.com.conf

正

sites-enabled/rails.example.com.conf

P.261 表9.4

誤

$privtekey

正

$privatekey


(以下2017年3月10日更新)

P.18 上から2行目(コマンド内)

誤
$ cd nginx-1.9.4
正
$ cd nginx-1.9.5

P.18 上から3行目(コマンド内)

誤
$ ./configure --prefix=/usr/local/nginx --sbin-path=/usr/sbin/nginx
正
$ ./configure --prefix=/usr/local/nginx

P.18 「インストールしたnginxの情報を確認」のコマンド内4行目

誤
configure arguments: --prefix=/usr/local/nginx --sbin-path=/usr/sbin/nginx
正
configure arguments: --prefix=/usr/local/nginx

P.64 表4.1

誤
/var/www/img/logo.png
正
/var/www/img/images/logo.png

誤
/var/www/img/main/logo.png
正
/var/www/img/images/main/logo.png

P.142 表6.3

誤
MaxClients
正
MaxRequestsPerChild

P.162 リスト7.1

誤
proxy_cache_key "$scheme://$host$request_uri$is_args$args";
正
proxy_cache_key "$scheme://$host$request_uri";

P.169 上から12行目(コマンド内)

誤
proxy_cache_nocache $no_cache;
正
proxy_no_cache $no_cache;

P.187 「アップストリームサーバへのTCPコネクションを保持」の2段落目下のリスト

誤
proxy_set_header Conection "";
正
proxy_set_header Connection "";

P.234 リスト9.4

誤
content_by_lua '
     # レスポンス生成
     …
     # レスポンスを返す
     ngx.say(response)
';
正
content_by_lua '
     -- レスポンス生成
     …
     -- レスポンスを返す
     ngx.say(response)
';