Whenever you visit http://website/cam, you get connected to http://192.168.0.168:80
$HTTP["url"] =~ "(^/cam/)" { proxy.server = ( "" => ( "192.168.0.168:80" => # name ( "host" => "127.0.0.1", "port" => 82 ) ) ) } # URL Rewriting Proxy # $SERVER["socket"] == ":82" { url.rewrite-once = ( "^/cam/(.*)$" => "/$1" ) proxy.server = ( "" => ( "192.168.0.168:82" => # name ( "host" => "192.168.0.168", # Set the IP address of 192.168.0.168 "port" => 80 ) ) ) }