Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently hosting some websites on my server, and I use Lighttpd for this.

Now I'm currently developing a web application using Node.js and I'd like to be able to create vhosts which would point to the Node.js application.

Let's say, I'd like to point out to I don't believe it is possible to directly use Node.js for this since the port 80 is already registered on the machine. So the only way I'm seeing is using some kind of reversed proxy with Lighttpd. But I don't know how and with what I'm going to do so.

share|improve this question
up vote 6 down vote accepted

Make sure you enable lighttpd's mod_proxy first. To have all of the requests for sent to the Node.js backend (assuming it's on localhost; correct?):

$HTTP["host"] == "" {
  proxy.server  = ( "" => (
    ( "host" => "", "port" => 3000 )
  ) )
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.