Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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 192.168.0.1 and there is nothing else on server.

I want to redirect any page request made to server (e.g.: "xyz.com") redirect on 192.168.0.1. 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
    
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
add comment

migrated from stackoverflow.com Mar 23 '11 at 12:29

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

1 Answer

Put the following line in your /etc/hosts:

192.168.0.1 xyz.com
share|improve this answer
    
i want to redirect user on 192.168.0.1 on any url user enters on browser...is it possible?? –  Anil Shahu Mar 23 '11 at 12:04
add comment

Your Answer

 
discard

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