look up your server's proxyName, proxyPort settings.

On 3/31/09 4:05 AM, ghafner wrote:
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));
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to