# Apache configuration file. # Change as appropriate for your apache configuration. # $Id$ Listen 9999 PidFile /var/tmp/httpd.pid TypesConfig /etc/mime.types DocumentRoot /home/gmosx/navel/nitro/examples/blog/public # The error log. ErrorLog log/apache.error_log CustomLog log/access_log combined # Load dynamic modules. LoadModule fastcgi_module /usr/local/apache2/modules/mod_fastcgi.so # LoadModule rewrite_module /usr/local/apache2/modules/mod_rewrite.so FastCgiIpcDir /var/tmp/fcgi # gmosx: if you have installed the distribution the -I is not needed. FastCgiConfig -initial-env 'RUBYOPT=-rubygems -I/home/gmosx/navel/nitro/lib -I/home/gmosx/navel/og/lib -I/home/gmosx/navel/glue/lib' AddHandler fastcgi-script fcgi rb Options +FollowSymLinks +ExecCGI RewriteEngine On RewriteRule ^/([\/\-_a-zA-Z0-9]+)?$ /fcgi.rb [QSA,L] RewriteRule ^/([\/\-_a-zA-Z0-9]+)?\?([\-_a-zA-Z0-9=;&%]*)$ /fcgi.rb?$2 [QSA,L] # You can also point these error messages to a controller/action # ErrorDocument 500 /500.html