Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.: "xyz.com") 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 stackoverflow.com Mar 23 '11 at 12:29

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

do you mean you have domains suchas xyz.com 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

1 Answer 1

Put the following line in your /etc/hosts: xyz.com
share|improve this answer
i want to redirect user on on any url user enters on browser...is 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.