examples/blog/conf/apache.conf in nitro-0.10.0 vs examples/blog/conf/apache.conf in nitro-0.11.0
- old
+ new
@@ -1,29 +1,59 @@
\ No newline at end of file
+# 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/root
+
+# 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'
+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