ASi

apache

VirtualHost と Location の関係

Location を VirtualHost の中に書けば、その内容は該当の VirtualHost にだけ効く。 Listen 60080 <VirtualHost *:60080> ProxyPass /somewhere/ http://www.somewhere.co.jp <Location /somewhere/> AuthType Basic AuthName "OSXLogin" AuthUserFile /etc/apache2/users/passwords Require valid-user </Location></virtualhost>…

コマンドラインからチェック

conf の文法確認 httpd -t -D DUMP_VHOSTS conf の設定内容の一部表示 httpd -S ロードされているmoduleのリスト httpd -M

htdigest が生成するもの

https://httpd.apache.org/docs/2.4/misc/password_encryptions.html#digest に公式のドキュメントがある。 下記を生成している username + ':' + realm + ':' + LOWERCASE(HEXSTR(MD5(username + ':' + realm + ':' + password))) $ htdigest -c digestpass…

apache で Windows Domain login を使う (Kerberos)

mod_auth_kerb を使う http://modauthkerb.sourceforge.net/configure.html Amazon Linux の場合 apache 2.2 と 2.4 で yum の名前が違う。 2.4 の場合 mod24_auth_kerb.x86_64 と 24 が付いている。 特定の apache でホストする URL へのアクセス時に id/pa…