1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

macでApache2.4のローカルファイルに対するアクセスにハマった問題解決法

Last updated at Posted at 2018-08-05

基本的に以下の記事をもとに解決を試みたのだが、自分の場合さらにもう一箇所変更が必要でハマったので備忘録として残しておく

Apache2.4で、アクセス制限の記述方法が変更されていた

/etc/apache2/httpd.conf
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
    AllowOverride none
    Require all granted
    # ↑に書き換え
    # Require all denied
</Directory>

上記はDirectoryの指定を / で指定している部分を直接変更したのでファイルシステム上全てに影響してしまうが、もっと局所的な指定でもOK。
####ハマった原因
ユーザ名とホームディレクトリの名前が同一でないことかも?(過去に色々いじって別になってる)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?