Apache1.3+FastCGIのインストール (MacOSX編)
Posted 12月 13th, 2006 by hippos
会社と同様自宅のマックでも環境を作成します。こちらはデフォルトでApache1.3.33がインストールされていますのでfastcgiだけをセットアップします。基本的には同じです。apxsはセットアップ済みでした。
apxs -o mod_fastcgi.so -c *.c apxs -i -a -n fastcgi mod_fastcgi.so
これで、/usr/libexec/httpd/にmod_fastcgi.soが作成されます。/etc/httpd/httpd.confに設定が追加されます。
LoadModule fastcgi_module libexec/httpd/mod_fastcgi.so AddModule mod_fastcgi.c
/etc/httpd/users/user_name.confを以下のように修正
<IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi </IfModule> Alias /foo "path/to/rubricks/public" Alias /foo/ "path/to/rubricks/public" <Directory "path/to/rubricks/public"> Options ExecCGI FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>
最後、Rubricks付属のhtaccessのRewriteBaseを/foo/に変更して、http://localhost/foo/からアクセスできるようになります。
この記事のトラックバックURL:
http://hippos-lab.com/blog/trackback/82










Comments