[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: Relative URLs
From:       George Christman <gchristman () cardaddy ! com>
Date:       2014-10-31 3:41:52
Message-ID: CADYqYfkVjdZ_afuWSRfEdg=9sa9_iYwPYQVAs09OA8YEMhOL1A () mail ! gmail ! com
[Download RAW message or body]


My work wants to be able to control the https through the proxy. They don't
want tapestry interfering with the urls and if you don't secure the page it
will give you http urls.

On Thu, Oct 30, 2014 at 9:25 PM, Chris Mylonas <chris@opencsta.org> wrote:

> Hi George,
>
> idk but why would you want relative URIs for rev.proxy/loadbalancer
> siches?  ../../to/page
>
> Looks like it's always absolute dude - as in href="/blah/path/to/page"
> The hostname is not written into the URI.
> I've just checked my delivered html behind httpd->tomcat and URIs are all
> absolute (on 5.4-beta-22).
>
> During this week I changed from a staging subdomain, without context paths
> set, to context path set, to test domain and this absolute URI stuff has
> worked flawlessly.  I haven't tested https though, but on other
> non-tapestry sites, https -> 127.0.0.1:8080/  and https -> 127.0.0.1:8180/
>
> I have done limited testing with tapestry.hostname when I was having
> tomcat proxy connector config problems (due to forgetting that the
> proxyName arg was set there, and my form-post-redirects were landing on the
> proxyName address rather than the domain) but i haven't figured out when
> I'd need to use that.
>
>
> From configuration page:
>
>
> tapestry.force-absolute-uris
> Deprecated since 5.2
>
> Icon
> Starting in Tapestry 5.2, the optimization to generate relative URIs has
> been removed, and all URIs are always absolute. Removed in 5.3.
>
> For Tapestry 5.0 and 5.1 only: when false (the default), Tapestry will
> attempt to optimize URIs that it generates, using relative URIs when such
> URIs are shorter than absolute URIs. When true, all URIs will be absolute
> URIs (including the context path, and the complete path for the request).
>
>
>
>
>
>
>
>
>
>
> On Fri, 31 Oct 2014 04:00:24 +1100, George Christman <
> gchristman@cardaddy.com> wrote:
>
>  How do I get Tapestry to use relative urls rather than Absolute? My apps
>> are hosted behind reverse proxies and load balancers which forward all
>> http
>> and https request off as http over 80 to the app servers. Thanks.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
George Christman
CEO
www.CarDaddy.com
P.O. Box 735
Johnstown, New York


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic