Hello Campers!
I am working on Site5, trying to get a working Camping application
running. Unfortunately, my sole option in terms of deployment is FastCGI.
I have no access to sudo so I cannot create ScriptAliases.
I've taken the Camping Short Short Example and uploaded it, along with a
dispatch.fcgi and an .htaccess file.
My question is - given the state of Camping development right now, what
should each of these look like? I've tried multiple solutions offered on
the mailing lists, from Post-ambles to Campingrcs, and no combination
seems to work.
What I have so far:
* The original Short Short Camping example, with the class HomePage
changed to Beta.
* This .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]
* This dispatch.fcgi:
#!/usr/bin/ruby
require 'rubygems'
require 'camping/fastcgi'
Camping::FastCGI.start('~/www/beta/beta.rb')
Thanks for all your help in advance!
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list