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

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 am working on an intranet application running over Lighttpd server, it is hosted on and there is nothing else on server.

I want to redirect any page request made to server (e.g.: "") redirect on I am working on python django framework.

Is it possible by making some changes in lighttpd.conf file, or by changing DNS (I am using dnsmask) or even by mod_rewrite? I am totally helpless.

share|improve this question

migrated from Mar 23 '11 at 12:29

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

do you mean you have domains suchas with local DNS setup pointing to your server and you want to redirect all domains that you are not explitcitly handling in your lighttpd config to some default site? – Chris Farmiloe Mar 22 '11 at 18:18

Put the following line in your /etc/hosts:
share|improve this answer
i want to redirect user on on any url user enters on it possible?? – Anil Shahu Mar 23 '11 at 12:04

Your Answer


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