您可以在站点上安装使用 Ruby 编程语言开发的自定义 Web 应用程序。
若要在您的站点上安装使用 Ruby 编写的应用程序:
/htdocs
目录,并在应用程序文件所处位置创建子目录。使其调用此目录 your_application
,仅作说明用。htdocs/your_application
目录。.htaccess
的文件,可选择使用文本编辑器打开此文件,并将以下行添加到此文件中: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]
your_application/public/.htaccess
your_application/public/dispatch.fcgi
,并将以下行放入该文件中:#!/usr/bin/ruby
现在则可以从以下 URL 访问 web 应用程序:http://your-domain.com/your_application。