I have problem with tapestry server host name? The configuration of server is
following:
Tapestry 5 application is located on server1, which is behind firewall and
whole application working on HTTPS protocol. When tapestry redirect from Index
to Main page (I use on Index page: return Main. class), it put in URL
https://server1 instead https:/server . In Appmodule.java file I put
contributeAlias, but seem that tapestry never use it, if anybody know why? My
problem is that, I would like call alias server name "server".
Some content from Appmodule.java file:
/**
* secure whole application (HTTPS)
* @param configuration
*/
public void contributeMetaDataLocator(MappedConfiguration configuration)
{
configuration.add(MetaDataConstants.SECURE_PAGE, "true");
}
/**
* application server base URL, for tapestry redirecting between pages
* @param configuration
*/
public static void contributeAlias(Configuration configuration)
{
BaseURLSource source = new BaseURLSource()
{
public String getBaseURL(boolean secure)
{
String protocol = secure ? "https" : "http";
int port = secure ? 443 : 80;
return String.format("%s://server:%d", protocol, port);
}
};
configuration.add(AliasContribution.create(BaseURLSource.class,
source));
}
--
View this message in context:
http://n2.nabble.com/Problem-with-tapestry-application-server-base-URL-behind-the-firewall-tp2562361p2562361.html
Sent from the Tapestry Developers mailing list archive at Nabble.com.