Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

1 Answer 1

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.