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

Is it possible to configure lighttpd to get this:


subdomani2. . . .

Or something like this:

if the domainname is not yet registred, ie. i want it to run on my machine but with all the configuration that will eventualy end up on the real server. I think it would work with some kind of a reddirect from to but only in name but i don't know how to set it up.

Thanks in advance.

share|improve this question

migrated from Feb 26 '10 at 6:11

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

If I understand right, you want to test-drive the server locally using the final URLs. You should be able to do this with your hosts file.

share|improve this answer

Your Answer


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