lighttpd forum lighty > Redirect url according to the domain name

Posted by Dudi (Guest)
on 10.07.2008 07:25
Hi,
I would like to redirect url’s to specific directories according to the 
domain name they arrived with (actually IP address).
Something likes http://101.10.10.1/first.txt that will redirect to 
http://101.10.10.1/101.10.10.1/first.txt

Currently I’m using a fixed redirect which does not give me a full 
answer.
  url.redirect            = ( "^/(.*)" => "http:// 
101.10.10.1/101.10.10.1/$1" )

Is there any way I can work this for any domain (IP Address) I’m 
getting?

Thanks Dudi.