これまた先程のSambaとカブる。
http.conf 廻りの変更が必要になる。
> 2.4 で Order ディレクティブが Require ディレクティブに変更された。 これを指定していないとこのエラーが出てアクセスしても 403 が返される。
>
> <Directory /the/path/to/docroot>
> Order allow,deny
> Allow from all
> </Directory>
>
> これが2.2までの古い書き方。2.4では、次のようにしなければならない。
>
> <Directory /the/path/to/docroot>
> Require all granted
> </Directory>
>
> mod_authz_core - Apache HTTP Server
>
> 例えばある特定のIP等からのアクセスを制限したい場合は こんな感じになるようだ。
>
> <RequireAll>
> Require all granted
> Require not ip 1.1.1.1
> </RequireAll>
>
> RequireAll でグループ化して、not で指定を反転させられる。 RequireAny とかもある。
ありがたや~。
コメント