Skip to content

Instantly share code, notes, and snippets.

@qnighy
Created June 25, 2012 16:14
Show Gist options
  • Save qnighy/2989527 to your computer and use it in GitHub Desktop.
Save qnighy/2989527 to your computer and use it in GitHub Desktop.
nginx Digest認証

nginx Digest認証 メモ

概要

  • nginxはDigest認証非対応
  • モジュール増やせばできる
  • モジュール増やすにはnginxからビルドし直さなくてはいけない

免責

自己責任

成否

今のところ失敗

環境

Ubuntu 12.04

手順

ビルドエッセンシャル

sudo apt-get install build-essential

依存関係

sudo apt-get build-dep nginx

ソースコード

sudo apt-get source nginx

モジュールのソースコード

wget https://github.com/samizdatco/nginx-http-auth-digest/tarball/master -O - | tar zxvf -
cp -r samizdatco-nginx-http-auth-digest-* nginx-*/debian/modules/nginx-http-auth-digest

中に入る

cd nginx-*

編集する

vim debian/rules

ビルドする

dpkg-buildpackage -rfakeroot

インストールする

dpkg -i ../nginx-common_* ../nginx-extras_*

なぜかうまくいかない

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment