#author("2017-11-08T19:06:56+09:00","default:wikiwriter","wikiwriter")
&tag(MacPorts/apache2/古い情報);
*目次 [#wd817251]
#contents
*関連ページ [#l1162ca7]
*参考情報 [#n5fdfadd]

*設定 [#oafa1f67]
**httpd.confの作成 [#xba2b819]
-httpd.conf.sampleをコピーする
 $ cd /opt/local/apache2/conf
 $ sudo cp httpd.conf.sample httpd.conf

**ユーザーディレクトリを有効にする。 [#x3df4c5b]
-httpd.confで以下の部分のコメントを外す
 # User home directories
 Include conf/extra/httpd-userdir.conf
-httpd-userdir.confは以下のようになっている。/Users/ユーザー名/Sites以下にコンテンツを作れば良いことが分かる。
#pre{{
UserDir Sites

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory "/Users/*/Sites">
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>

}}

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS