Project

General

Profile

url.redirect <-- redirect to a LAN IP as opposed to a URL

Added by k0pp almost 16 years ago

Using the most current version of lighttpd on FreeBSD 7.1, mozilla firefox browser.

Here's a chunk of my config.

$HTTP["host"] =~ "oxsh.net" {
url.redirect = ( "^/(.*)" => "http://192.168.1.102/$1" )
}

So.. obviously i have the oxsh.net domain name registered and pointing to my IP address..
Since only 1 of my machines can have port 80 forwarded to it from the router, I'm trying to forward requests for the OxSH domain to a different machine inside my LAN, as opposed to the oxsh.net url. But obviously having the redirect to 192.168.1.102 is going to redirect it to machines on other people's LAN, or it just wont resolve/connect.

How can I do this?


Replies (1)

RE: url.redirect <-- redirect to a LAN IP as opposed to a URL - Added by stbuehler almost 16 years ago

You could use a different port for forwarding (like port 81) and redirect to the public ip of your router like ... => "http://public.ip:81/$1".

    (1-1/1)