Guest User

Untitled

a guest
Apr 24th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. # STEP 1: set merb.fcgi to executable
  2. chmod +x public/merb.fcgi
  3.  
  4.  
  5.  
  6. # STEP 2: create a public/.htaccess file containing something like:
  7. AddHandler fcgid-script .fcgi
  8. Options +FollowSymLinks +ExecCGI
  9.  
  10. RewriteEngine On
  11. RewriteRule ^$ index.html [QSA]
  12. RewriteRule ^([^.]+)$ $1.html [QSA]
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteRule ^(.*)$ merb.fcgi [QSA,L]
  15.  
  16. ErrorDocument 500 "<h2>Application Error</h2>Merb could not be reached
Add Comment
Please, Sign In to add comment