ip nat inside source static tcp 10.0.1.3 80 interface Virtual-PPP1 8081
ip nat inside source static tcp 10.0.1.4 80 interface Virtual-PPP1 8082
ip nat inside source static tcp 10.0.1.5 8080 interface Virtual-PPP1 8083
server.modules = (
"mod_access",
"mod_accesslog",
"mod_proxy"
)
$HTTP["host"] =~ "(^|\.)cam\.habrahabr\.ru$" { #
proxy.server = ("" => ( ( #
"host" => "62.213.122.2", # IP
"port" => 8081 ) ) ) #
accesslog.filename = "/var/log/lighttpd/camera.log" #
}
$HTTP["host"] =~ "(^|\.)geexbox\.habrahabr\.ru$" {
proxy.server = ("" => ( (
"host" => "62.213.122.2",
"port" => 8082 ) ) )
accesslog.filename = "/var/log/lighttpd/geexbox.log"
}
$HTTP["host"] =~ "(^|\.)adsl\.habrahabr\.ru$" {
proxy.server = ("" => ( (
"host" => "62.213.122.2",
"port" => 8083 ) ) )
accesslog.filename = "/var/log/lighttpd/adsl.log"
}
service lighttpd restart
Source: https://habr.com/ru/post/69928/