1 2 DocumentRoot /www/domains/yourdomainhere/www/public/ 3 ServerName yourdomainhere 4 5 DefaultInitEnv RAILS_ENV production 6 7 8 RewriteEngine On 9 # Let apache handle purely static files like images by itself. 10 RewriteCond %{REQUEST_FILENAME} !-f 11 # Send Everything else to fcgi 12 RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] 13 AddHandler fcgid-script .fcgi 14 AddHandler cgi-script .cgi 15 16 17 18 19 Options Indexes FollowSymLinks ExecCGI 20 AllowOverride None 21 Order allow,deny 22 Allow from all 23 24