> Suppose I need to put the app on a web server. It has a .htaccess file 
> in ~/www . What do I write inside that .htaccess file to put my app at / 
> on the website?

I installed the mongrel gem, and tried this in .htaccess:

Options +ExecCGI
AddHandler fastcgi-script .fcgi
AddHandler fcgid-script .fcgi
DirectoryIndex public/merb.fcgi

I got the raw text of merb.fcgi. (Yes, its permissions and #! shebang are 
correct!)

Then I replaced that with this:

RewriteEngine   on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule     (.*) http://localhost:4000/$1 [P]

And ran merb -I my_app.rb on port 4000 (naturally). Lynx, on the same server, 
can see the page, but when I hit across the 'net I get an Apache splash page 
saying I've stumbled off the end of the website. Nothing in the error.log or 
access.log either.

What should I try next?

-- 
   Phlip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to