lighttpd 将目录代理到另一台服务器
在 /etc/lighttpd/vhosts
$HTTP["url"] =~ "^/sr/" {
proxy.server = (
"" => ( (
"host" => "x.x.x.x",
"port" => 80
) )
)
}
mod_proxy - 启用 但什么也没发生,example.com/sr/
转发到第一台服务器上的 404 页面
in /etc/lighttpd/vhosts
$HTTP["url"] =~ "^/sr/" {
proxy.server = (
"" => ( (
"host" => "x.x.x.x",
"port" => 80
) )
)
}
mod_proxy - enabled
but nothing hapends, example.com/sr/
forward to 404 page on first server
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的
$HTTP["url"] =~ "^/sr/" {
是否位于$HTTP["host"]
子句内?你有没有尝试过:
Is your
$HTTP["url"] =~ "^/sr/" {
inside a$HTTP["host"]
clause ?Have you tried: