A SERVICE OF

logo

154 Serving Your Customers
To install on your site an application written in Ruby:
1 Go to Domains > Domain name > 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: http://your-
domain.com/your_application.
Securing E-commerce Transactions with Secure
Sockets Layer Encryption
If your clients are running an e-commerce business, they need to secure transactions
between their customers and their site. To prevent the valuable data, such as credit
card numbers and other personally identifiable information from being stolen, you
should use the Secure Sockets Layer protocol, which encrypts all data and transfers
them securely over the SSL connection. And even if someone intercepts the data for
malicious intent, they will not be able to decrypt and use them.
To implement the Secure Sockets Layer protocol on your web server, you should
purchase an SSL certificate from a reputable certificate vendor (these vendors are
called Certificate Authorities), and then install this certificate on your site. To enable
SSL protection, you must host your site on a dedicated IP address, which is not shared
among other web sites.
There are numerous certificate authorities to choose from. When considering one, pay
attention to reputation and credibility of the CA. Knowing how long they have been in
business and how many customers they have will help you make the right choice.