Andre - I have a working camping app on Dreamhost.

My .htaccess:


AddHandler fastcgi-script .fcgi
Options +FollowSymLinks +ExecCGI

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$ [OR]
#RewriteCond %{REQUEST_URI} ^/static/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/mint/(.*)$
RewriteRule ^.*$ - [L]

RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

**********

my dispatch.fcgi:

#!/home/styledbits/local/bin/ruby
require 'rubygems'
require 'camping'
require 'camping/fastcgi'
ENV["FORCE_ROOT"]=1.to_s
Camping::Models::Base.establish_connection :adapter => 'sqlite3',
:database => "wankosphere.sqlite3"
Camping::FastCGI.serve("wankosphere.rb")


On 3/27/07, andré gustavo cardozo <[EMAIL PROTECTED]> wrote:
> Dan
>
> did you get camping running on dreamhost already??
>
> i´m trying to run it also but i haven't succeed yet. it runs on
> command line but when i add the rewrite rules on .htaccess i get a
> internal server error.
>
> I emailed support to ask about ScriptAlias and they say they cannot
> change or add that to apache conf.
>
>
>
> --
> André G. Cardozo
> _______________________________________________
> Camping-list mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/camping-list
>
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to