Lighttpd - url 重定向或重新写入 - gUP 到 IP
Lighttpd - url redirect or re write - gUP to IP
我想在lighttpd中实现以下功能
重定向以下内容:
http://192.168.0.5/test/ to go to http://192.168.0.9/test
和
http://123.124.125.156/test/ test to go to http://123.124.125.158/test/
192.168.0.5和123.124.125.156都是服务器地址
我正在用我目前的知识兜圈子。
如果我在回复之前得到它,我会继续尝试并报告
此致
利亚姆
确定找到解决方案
$HTTP["host"] == "123.124.125.156" {
url.redirect = (
"^/test/(.*)" => "http://123.124.125.158/test/",
)
}
$HTTP["host"] == "192.168.0.5" {
url.redirect = (
"^/test/(.*)" => "http://192.168.0.9/test/",
)
}
如果您想重定向所有内容,请在重定向中使用它
"^/(.*)" => "http://xxx.xxx.xxx.xxx/"
我希望这对某人有所帮助
此致
确定找到解决方案
$HTTP["host"] == "123.124.125.156" {
url.redirect = (
"^/test/(.*)" => "http://123.124.125.158/test/",
)
}
$HTTP["host"] == "192.168.0.5" {
url.redirect = (
"^/test/(.*)" => "http://192.168.0.9/test/",
)
}
如果您想重定向所有内容,请在重定向中使用它
"^/(.*)" => "http://xxx.xxx.xxx.xxx/"
我希望这对某人有所帮助
此致
我想在lighttpd中实现以下功能 重定向以下内容:
http://192.168.0.5/test/ to go to http://192.168.0.9/test
和
http://123.124.125.156/test/ test to go to http://123.124.125.158/test/
192.168.0.5和123.124.125.156都是服务器地址
我正在用我目前的知识兜圈子。
如果我在回复之前得到它,我会继续尝试并报告
此致
利亚姆
确定找到解决方案
$HTTP["host"] == "123.124.125.156" {
url.redirect = (
"^/test/(.*)" => "http://123.124.125.158/test/",
)
}
$HTTP["host"] == "192.168.0.5" {
url.redirect = (
"^/test/(.*)" => "http://192.168.0.9/test/",
)
}
如果您想重定向所有内容,请在重定向中使用它
"^/(.*)" => "http://xxx.xxx.xxx.xxx/"
我希望这对某人有所帮助
此致
确定找到解决方案
$HTTP["host"] == "123.124.125.156" {
url.redirect = (
"^/test/(.*)" => "http://123.124.125.158/test/",
)
}
$HTTP["host"] == "192.168.0.5" {
url.redirect = (
"^/test/(.*)" => "http://192.168.0.9/test/",
)
}
如果您想重定向所有内容,请在重定向中使用它
"^/(.*)" => "http://xxx.xxx.xxx.xxx/"
我希望这对某人有所帮助
此致