# Apache Configuration # Change as needed for your system. 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 gems # 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 AddHandler cgi-script cgi rb Options +FollowSymLinks +ExecCGI # Redirect all requests not available on the filesystem # to Nitro. By default the cgi dispatcher is used which # is very slow. For better performance replace the # dispatcher with the fastcgi one # # Example: # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.cgi [QSA,L] # In case Nitro experiences terminal errors. # Instead of displaying this message you can supply a # file here which will be rendered instead. # # Example: # ErrorDocument 500 /500.html ErrorDocument 500 "