ブックマーク / www.session18.net (1)

  • session18.net - Apache の Basic 認証でサブディレクトリを外す

    仕事の話。 Apache で、とあるディレクトリに対し Basic 認証をかけ、そのディレクトリのサブディレクトリには Basic 認証を外すという必要があったので Apache のマニュアルを調べてみたら、あった。 サブディレクトリで制御を解除する方法 サンプル↓ <Directory "/path/to/protected"> AuthName "hoge" AuthType Basic AuthUserFile /path/to/protected/.htpasswd Require valid-user </Directory> <Directory "/path/to/protected/unprotected"> Satisfy Any Allow from any </Directory> これで protected ディレクトリにある unprotected ディレクトリ

  • 1