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've just set up a lighttpd server which i want to use to serve multiple applications on different domains.

I've managed to make traffic to a spesific domain to be redirected to an application running on another port like this:

$HTTP["host"] =~"" {
proxy.balace = "round-robin" proxy.server = ( "/" =>
    ( ( "host" => "", "port" => 8080 ) ) )


I know i don't need the balance thing, but i have it just in case i'm going to sometime.

Anyway, the problem is that i want the all the traffic to "" to go to "".

I know i can rename the war to ROOT.war, i would like to solve this using lighttpd redirect or something so i can host multiple apps if i want to.

So basically how do i get traffic to "" to go to ""?

share|improve this question

migrated from Oct 20 '11 at 11:02

This question came from our site for professional and enthusiast programmers.

Just create and configure "fake" http root directory with no files.

server.document-root = "/var/www"

share|improve this answer

Your Answer


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