Printed from at 10:59 on 28/Oct/2020. Knowledge Base

Installing Ruby Web Applications

You can install on your site custom Web applications developed in the Ruby programming language.

To install on your site an application written in Ruby:

  1. On your Home page, select the domain name you need, then, under Hosting, click Setup.
  2. Select the CGI and FastCGI check boxes, and click OK.
  3. Connect to your FTP account, change to the /htdocs directory, and create a subdirectory where the application files will reside. Let's call this directory your_application, for illustration purposes.
  4. Upload the application files to the htdocs/your_application directory.
  5. Create a file with name .htaccess in this directory, open it with a text editor of your choice and add the following lines into the file:

    RewriteEngine On RewriteRule ^$ /public/index.html [L] RewriteCond %{REQUEST_URI} !^/your_application/public

    RewriteRule ^(.*)$ /public/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ public/dispatch.fcgi/$1 [QSA,L]

  6. Save the file.
  7. Remove the file your_application/public/.htaccess
  8. Open the file your_application/public/dispatch.fcgi with a text editor and put the following lines there: #!/usr/bin/ruby
  9. Save the file.


Now the web application will be accessible at the following URL:

Tags: Installing Ruby Web Applications

Tell us what you think!!

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

Useful tools....

Digg it! Print this record Send to a friend Show this as PDF file Support Team Solution ID #1035

Last update: 2008-02-06 19:25 | Revision: 1.0