Go to your domain that you want to adjust, and click Setup. Make sure the CGI and FastCGI options are enabled. Pick a name for your application and make the directory for your application in the httpdocs directory. Upload your files to that directory.

Once you've done that, create an .htaccess file in the httpdocs directory with the following text inside:

RewriteEngine On
RewriteRule ^$ /public/index.html [L]
RewriteCond % !^/railsapp/public
RewriteRule ^(.*)$ /public/$1 [L]
RewriteCond % !-f
RewriteRule ^(.*)$ public/dispatch.fcgi/$1 [QSA,L]

Remove the .htaccess file within the public directory of your application and add a file called dispatch.fcgi to that directory which contains:

#!/usr/bin/ruby

You should be able to access your application at http://domain.com/railsapp/.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Passwords must meet complexity requirements

This security setting determines whether passwords must meet complexity requirements. Passwords...

ASP.NET Permissions

In order to set ASP.NET permissions you will need to use the Plesk IIS WP User.  Login to your...

Can not display previous months / years in Awstats

This article applies to customers using the Plesk control panel. In order to view previous...

Control Panel Login

If you are a Plesk control panel customer you will want to refer to your confirmation e-mail that...

Create IIS application in Plesk control panel interface

- Login to your control panel interface, go to Websites & Domains -> (Show Advanced...