(Snow) LeopardのApacheのメモ
設定ファイル(httpd.conf)
/etc/apache2/httpd.conf
ユーザー毎の設定ファイル(http://localhost/~username/)
/etc/apache2/users/username.conf
起動・停止
システム環境設定→共有→Web共有のチェックボックスをON/OFF
またはapachectlで
apachectl start #apacheの起動 apachectl stop #apacheの停止 apachectl restart #apacheの再起動 apachectl graceful #apacheの再起動(確立済みのコネクションを無効にしない) apachectl configtest #httpd.confのチェック
ユーザーのサイトをコンピューターのサイトにする
http://localhost/~username/をhttp://localhost/でアクセスできるようにする
/etc/apache2/users/username.conf
を下記のように修正
DocumentRoot /Users/username/Sites <Directory "/Users/username/Sites/"> Options All AllowOverride All Order allow,deny Allow from all </Directory>