rob
July 3rd, 2005, 11:49 PM
Our ocs-install-rails script configures your environment for CGI by default, which is the recommended mode to develop your application in. It is slower however than FastCGI, and if your application is ready to go into production mode, we recommend enabling FastCGI.
To turn on FCGI mode, please follow these instructions.
SSH into your account
Use a text editor like nano or vim to edit the file rails_sites/[YOUR RAILS INSTANCE]/public/.htaccess (replace [YOUR RAILS INSTANCE] with the name of your instance). If you manually installed rails, go to your public folder and edit the .htaccess file.
Search for RewriteRule ^(.*)$ dispatch.cgi [QSA,L] and replace the dispatch.cgi with dispatch.fcgi and save.
Remember to switch back to CGI mode when you're application is done or you're not going to be adding code for a while.
To turn on FCGI mode, please follow these instructions.
SSH into your account
Use a text editor like nano or vim to edit the file rails_sites/[YOUR RAILS INSTANCE]/public/.htaccess (replace [YOUR RAILS INSTANCE] with the name of your instance). If you manually installed rails, go to your public folder and edit the .htaccess file.
Search for RewriteRule ^(.*)$ dispatch.cgi [QSA,L] and replace the dispatch.cgi with dispatch.fcgi and save.
Remember to switch back to CGI mode when you're application is done or you're not going to be adding code for a while.