Nubie question about virtual hosts

djsodom

Active Member
#1
This is a pretty basic question. Forgive me. I don't know how to set up my virtual host. I'm trying to set up litespeed on my intel mac to run rails.

The litespeed installation was a snap. Litespeed is installed at:
Users/steveodom/lsws

I installed ruby lsapi via gem install ruby-lsapi.

I'm now trying to do step 2 from the ruby_rails_easy wiki page, and use the Virtual Host template (EasyRailsWithSuEXEC).

The instructions provide this example:

Virtual Host Name: RubyVHost
Domain: <the_vhost_domain_name>
Aliases: <vhost_alias_if_any>
Virtual Host Root: /myrailapp/ <-- rails application root directory

I don't know what to put in these fields. I have a rails app on my machine at....

Users/steveodom/documents/myrailsapp/trunk

..that I'd like to use. Can I point the virtual host root to this directory? Do I have to create a new directory somewhere instead and checkout or copy my project there? If I'm just running litespeed locally for development, I presume I don't need to put anything under domain. If I run this on my production server and my app has a domain of myrailsapp.com, is that what I put under domain? (myrailsapp.com?). I know, basic stuff.

Thanks for you help.

Steve
 

mistwang

LiteSpeed Staff
#2
You can try the following:

Virtual Host Name: RubyVHost
Domain: *
Aliases:
Virtual Host Root: Users/steveodom/documents/myrailsapp/trunk
 
Top