Reputation: 8691
The Trinidad docs tell how to get a Jruby on Rails app up and running in detail, but can someone tell me / point me to a good tutorial on how to configure Apache to use the Trinidad server?
Upvotes: 1
Views: 500
Reputation: 26743
The Trinidad wiki describes how to configure AJP to connect Apache to Trinidad:
jruby -S trinidad --ajp 8099
Once Trinidad is configured to use AJP, you need to configure Apache to connect to AJP. First enable the ajp module:
$ sudo a2enmod proxy_ajp
Then, configure Apache to connect to ajp on the port you defined on Trinidad in the httpd.conf
file:
<VirtualHost *:80>
ProxyPass / ajp://localhost:8099/
ProxyPassReverse / ajp://localhost:8099/
</VirtualHost>
Check out the Trinidad page for more details on load balancing.
Finally, you should get Deploying with JRuby if you want to go deeper into how to configure and deploy your JRuby apps on Trinidad using Capistrano/Puppet. It's a very good book.
Upvotes: 1