Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # STEP 1: set merb.fcgi to executable
- chmod +x public/merb.fcgi
- # STEP 2: create a public/.htaccess file containing something like:
- AddHandler fcgid-script .fcgi
- Options +FollowSymLinks +ExecCGI
- RewriteEngine On
- RewriteRule ^$ index.html [QSA]
- RewriteRule ^([^.]+)$ $1.html [QSA]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^(.*)$ merb.fcgi [QSA,L]
- ErrorDocument 500 "<h2>Application Error</h2>Merb could not be reached
Add Comment
Please, Sign In to add comment