磅作为mod_proxy的替代品

我想从apache ReverseProxy切换到磅。

我的问题是:我的proxy.conf中有一些规则:
ProxyPass / lalelu http:// internale / NOT_Lalelu

现在英镑我不知道如何“映射”这一点。
我只能:

Service
URL "/lalelu"
Backend
Adress internal
Port
End
End

我是赖特,还是有办法将目录映射到根目录或另一个目录?

谢谢

庞德真快,稳定,简单。 我发现BackEnd(代理)和redirect是我们所需要的。 庞德的redirect子句采用正则expression式。

HTTPredirect与ProxyPass不同(因为它们不会隐藏用户的映射),但它也可能适用于您。

举例来说,这将是:

 Service URL "^/lalelu" http://internale/NOT_Lalelu End Service URL "/NOT_Lalelu" Backend Adress internal Port End End 

以下是我们使用的其他一些示例:

 Service HeadRequire "^Host: fmspbm\.ucr\.edu$" URL "^/?$" Redirect "http://fmspbm.ucr.edu/binplone" End 

要么

 Service URL "^/(~|%7E)userxyz" HeadRequire "^Host: biocluster\.ucr\.edu$" Redirect "http://biocluster.ucr.edu/~userx" End 

使用Apache的优点是您可以获得出色的URL(和内容)重写function。

如果出于性能方面的原因,您将不再使用mod_proxy ,则可能需要查看Varnish ,尽pipeVarnish本身不会执行SSL(一种典型的解决scheme使用stunnel,Pound或Apache来提供SSL服务)。 Varnish可以在URL上执行基于任意正则expression式的重写(还具有负载平衡function)。