Setting up a local environment

Discussion in 'Install/Configuration' started by palb, Jul 16, 2007.

  1. palb

    palb Well-Known Member

    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.
  2. PSS

    PSS Well-Known Member

    Create a listener

    Listener Name: private
    IP Address:
    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), localhost

    in its Domains list.
  3. palb

    palb Well-Known Member

    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.
  4. PSS

    PSS Well-Known Member

    I don't get it, where is the exact problem. Just do like 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:
    Last edited: Jul 20, 2007
  5. palb

    palb Well-Known Member

    Got it working now.:) I don't know why 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

Share This Page