9
10

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.

YosemiteでApacheの(というかDocumentRootの)再設定 ※追記(11/8)

Last updated at Posted at 2014-11-03

 Marvericksからyosemiteに上げて、ドキュメントルート(localhost/~username的なアクセス)の設定が上手く働いてなかったので、設定しなおしました。以前の設定ファイルを直接置いても私のところでは動かなかったのでまとめておきます。備忘録備忘録。

/etc/apache2/httpd.conf
# about L490, comment in
# User home directories
Include /private/etc/apache2/extra/httpd-userdir.conf
/etc/apache2/extra/httpd-userdir.conf
# about L16, comment in
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
Include /private/etc/apache2/users/*.conf
/etc/apache2/users/[username].conf
<directory "/Users/[username]/Sites/">
    Options Indexes MultiViews FollowSymlinks
    AllowOverride All
    Require all granted
</directory>

無駄に時間かけてしまった。

DocumentRootの設定ではなくUserDirじゃね?とのご指摘を受けました。ありがとうございます。
DocumentRootで検索する人もいそうなので、タイトルはあえてこのままにしておきます。

9
10
1

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
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?