0
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.

Web server setting for mac (snow leopard)

Posted at
  1. system preferences -> 共有 -> Web共有のチェックをON
  2. http://localhost/~usernameで公開されるファイルは、~/Sites以下に置く。
  3. Symbolic linkで別ディレクトリにあるDropbox管理下のディレクトリにリンクを貼る
ln -s src dest

-s忘れない。
4. apacheの設定ファイルを変更する。

/private/etc/apache2/users/username.conf

FollowSimLinksを追加する。

<Directory "/Users/mariko/Sites/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

~/Sites/以下でなく、全体の設定ファイルは

/private/etc/apache2/httpd.conf

にある。
5. Dropbox用ディレクトリのデフォルト状態だと、ディレクトリにapacheがアクセス出来ないので、

chmod 705 DropboxDir

する。
6. system preferences -> 共有 -> Web共有のチェックをOFF,ONして、apache再起動。

0
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
0
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?