Mac OS X で Apache を使う !! 参考 * Mac OS X で Apache サーバを立てよう http://www.futomi.com/lecture/macosx/ * 超簡単 Mac OS X のローカルで CGI http://homepage1.nifty.com/glass/tom_neko/web/web_cgi_osx.html !! 設定 システム環境設定 - web 共有 を有効にする。 終わり。 !! httpd.conf システム全体の設定ファイル /etc/httpd/httpd.conf は書き換えない。 ユーザごとの設定は /etc/httpd/users/rin.conf などになる。 これを書き換える。 --- /etc/httpd/users/rin.conf.20050502 Sat May 21 23:15:02 2005 +++ /etc/httpd/users/rin.conf Sat May 21 23:34:22 2005 @@ -1,6 +1,9 @@ - Options Indexes MultiViews - AllowOverride None + Options ExecCGI MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec + AllowOverride All Order allow,deny Allow from all + AddHandler cgi-script .cgi .rb .pl + DirectoryIndex index.html index.html.var index.cgi index.rb index.pl index.php 再起動する。 kahori:/etc/httpd/users root# /System/Library/StartupItems/Apache/Apache restart Restarting Apache web server /usr/sbin/apachectl restart: httpd restarted 終わり。