3
3

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でWeb共有

Last updated at Posted at 2015-02-20

手順

設定

下記ファイルの当該箇所をコメントアウトする。

/etc/apache2/httpd.conf
LoadModule userdir_module libexec/apache2/mod_userdir.so
Include /private/etc/apache2/extra/httpd-userdir.conf
/etc/apache2/extra/httpd-userdir.conf
Include /private/etc/apache2/users/*.conf

下記ファイルを作成。%USER%は、適宜ユーザ名に置き換える。

/etc/apache2/users/%USER%.conf
<Directory "/Users/%USER%/Sites/">
	AllowOverride All
	Options Indexes MultiViews FollowSymLinks
	Require all granted
</Directory>

Apache起動

$ sudo apachectl start

謎(解決)

Includeのパスが/etc/apache2/...でなく、/private/etc/apache2/...なのは、/etc/private/etcのシンボリックリンクだから。

3
3
2

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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?