On Thu, Apr 10, 2014 at 5:45 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote:
> On Thu, 10 Apr 2014 20:30:42 -0300, Sanket Sharma <sanketsha...@gmail.com> > wrote: > > > Also, what would be the best way to replace localhost/hostname for >> outgoing links? Since the application will be running behind a >> firewall/loadbalancer, the hostname will not be same as publicly visible >> hostname. >> > That's called URL rewriting, specifically outgoing URL rewriting. You can > use the built-in LinkRewriter API. Google it. ;) > There's no need for URL rewriting just for that. You can simply set the hostname and port via symbols: configuration.add(SymbolConstants.HOSTNAME, "www.myhost.com"); configuration.add(SymbolConstants.HOSTPORT, "80"); Kalle