Hi, I use @secure on some pages(login, setup, etc), with following BaseURL service, it works well.
now, there is this new requirement, when in https mode, the domain should be a subdomain: safe.sample.com not a root domain, sample.com, this cause problems to existing pages, example, a non @secure page View become http://www.safe.sample.com/view, instead of http://www.sample.com/view solutions? Angelo public static void contributeAlias(Configuration<AliasContribution> configuration) { BaseURLSource source = new BaseURLSource() { public String getBaseURL(boolean secure) { String protocol = secure ? "https" : "http"; int port = secure ? 8443 : 8080; return String.format("%s://www.%s", protocol, "sample.com"); } }; configuration.add(AliasContribution.create(BaseURLSource.class, source)); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/subdoamin-when-https-else-root-possible-tp4598875p4598875.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org