LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > How to setup a subdomain for mongrel

Reply
 
Thread Tools Display Modes
  #1  
Old 08-12-2006, 02:25 AM
gernot gernot is offline
New Member
 
Join Date: Aug 2006
Posts: 5
Default How to setup a subdomain for mongrel

Hi

I've tried so hard but I can't find out how to do it. Here's what I want to do:

I've set up a new server and deployed two rails apps to it. The first one is my site app, the second one is an application.

I have two mongrel clusters running serving those two apps and I've created a listener and a virtual host for each. I can now reach my site app through www.domain.com and my second app through www.domain.com:9000

All works fine, but I want to have the url app.domain.com for my second application. How am I supposed to configure that ?

Thanks very much for any help

Gernot Kogler
Reply With Quote
  #2  
Old 08-12-2006, 09:09 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Gernot, try this:

Multiple vhosts (domains) can be bound to a Listener (IP:Port).

1) Login to web admin

2) Go to "Listeners" and you should have just one listener using port 80.

3) Go to port 80 listener and in the "Virtual Host Mapping" make sure there are two entires. Add or edit entries as necessary.

A. A vhost with domains field set to www.mydomain.com
B. A different vhost with domains field set to ap2.mydomain.com

4) Restart

For above it is assumed you already have 2 virtual hosts setup, one for www. and one for ap2.
Reply With Quote
  #3  
Old 08-12-2006, 09:39 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
And, don't forget to add a dns record pointing app.mydomain.com to your server.
Reply With Quote
  #4  
Old 08-12-2006, 11:05 PM
gernot gernot is offline
New Member
 
Join Date: Aug 2006
Posts: 5
Thank you very much, works perfectly. I thought it should work this way and tried it before, but I had my vhosts messed up. I cleaned out all the experimental stuff and did a clean new setup and it works now as expected.

I like litespeed very much. It's flexible and fast :-)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
Redirect subdomain art182 Apache Migration/Compatibility 1 10-16-2006 01:20 PM
Rails setup issues alfredtoh Ruby/Rails 1 09-25-2006 08:36 PM
Ruby Setup zoom Install/Configuration 5 01-26-2006 09:52 AM
LiteSpeed chroot setup zoom Install/Configuration 5 12-06-2005 02:29 PM


All times are GMT -7. The time now is 05:07 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.