Specifications
If you specied a model or scaold in your Rails application, the URL might be
something like http://127.0.0.1/rails/<ModelName>.
You should see the “Welcome Aboard / You’re riding the rails” page.
4 Open Server Admin and connect to the server.
5 Click the triangle at the left of the server.
The list of services appears.
6 From the expanded Servers list, select Web.
7 Click Sites, then select the website in the list.
8 Click Proxy below the websites list.
9 Select the Enable Reverse Proxy checkbox.
10 In the Proxy path eld, enter the prex you specied for mongrel_rails_persist, but
with a leading and trailing backslash.
In our example, this would be /rails/.
11 Leave the Sticky Session Identier eld blank unless you have a reason to specify a value.
12 To add a balancer member, click the Add (+) button below the Balancer Members list.
13 From the Server URL pop-up menu, designate the URL for the load balancer member.
Each instance of Mongrel running locally has its URL shown in the pop-up menu, so
you should be able to select one (for example, http://127.0.0.1:3001/rails).
14 If there is only one balancer member, set the Load Factor to 100.
Use the Load Factor eld to distribute the load among balancer members.
15 Leave the Route eld blank unless you have a specic reason to enter a value.
16 Click OK.
17 Click Save.
18 Start Web Service, if it is not running.
19 Use Safari to access the proxy URL to conrm that the web application is responding:
http://127.0.0.1/rails/
If you specied a model or scaold in your Rails application, the URL might be
something like http://127.0.0.1/rail/<ModelName>.
If a trailing slash is required, use the Server Admin Web Alias panel for the site and add
a RedirectMatch entry that maps /rails to /rails/.
20 Use Safari to access to the local URL to conrm that other content is available at other
URLs within the website:
http://127.0.0.1
74 Chapter 5 Working with Open Source Applications