Setting up a local environment

palb

Well-Known Member
#21
http://i.nfectio.us/litespeed2/litespeed2.html

This assumes that you have a fixed ip doesn't it (or I have missed something important about VHosting)? Can't get that example to work. When I asked my first question in this thread you said that you wasn't sure what I was after, and that surprise me. Once again, how do I set up a local environment (with no accesss from the outside world) serving different Rails (and then PHP) apps? If Litespeed is so simple then why is this so difficult to explain?

I would love to get this to run. Apache+Mongrel just works, but it's more complex. But your attitude towards this makes me hesitate about Litespeed Technologies and to actually buy your product.
 

PSS

Well-Known Member
#22
how do I set up a local environment (with no accesss from the outside world)?
Create a listener

Listener Name: private
IP Address: 127.0.0.1
Port: 80 (or whatever you want to use)

Then in Listeners page edit that listener: in /General/Virtual Host Mappings add your virtual host to it, and put (only)

127.0.0.1, localhost

in its Domains list.
 

palb

Well-Known Member
#23
Create a listener

Listener Name: private
IP Address: 127.0.0.1
Port: 80 (or whatever you want to use)

Then in Listeners page edit that listener: in /General/Virtual Host Mappings add your virtual host to it, and put (only)

127.0.0.1, localhost

in its Domains list.
This is much the same as the default setup. I wanted to know how to setup a local Rails environment, but with the use of localhost as domain, so I can develop different Rails apps.
 

PSS

Well-Known Member
#24
This is much the same as the default setup. I wanted to know how to setup a local Rails environment, but with the use of localhost as domain, so I can develop different Rails apps.
I don't get it, where is the exact problem. Just do like http://i.nfectio.us/litespeed2/litespeed2.html says and have listener listen only localhost. Put your data inside webroot or ln -s to the data folders and allow ls follow symbolic links. If you want ls to have rights for the files either install ls with user who does have required privileges or change files' privileges so that ls can work with them. Restart the server after changes.

I think your should try contact Bob Silva for Mac OS specific problem solving: http://i.nfectio.us/articles/2006/09/04/litespeed-web-server-2-2-includes-rails-support
 
Last edited:

palb

Well-Known Member
#25
I don't get it, where is the exact problem. Just do like http://i.nfectio.us/litespeed2/litespeed2.html says and have listener listen only localhost. Put your data inside webroot or ln -s to the data folders and allow ls follow symbolic links. If you want ls to have rights for the files either install ls with user who does have required privileges or change files' privileges so that ls can work with them. Restart the server after changes.
Got it working now.:) I don't know why http://i.nfectio.us/litespeed2/litespeed2.html didn't work. It just didn't.

I skipped the Virtual Host Template. I think that confused me. What I did was to add a listener to localhost:3000 (like using mongrel), then adding a VH with Rails support. I added Rails support in Context with the uri /. I think that did the trick. I don't fully understand what it did, but it works.

How can I do the same but to use the example at http://i.nfectio.us/litespeed2/litespeed2.html?
 
Top