if you need to solve it now then simply copy and paste the code for
the request processor and customize it

-igor

On Fri, Jan 29, 2010 at 7:08 AM, Boydens Joeri (OZ) <[email protected]> wrote:
> I've created an issue for it, but how could I solve it for now ?
>
> Any hints/tips where to start ?
>
> Thanks
>
> -----Oorspronkelijk bericht-----
> Van: Igor Vaynberg [mailto:[email protected]]
> Verzonden: vrijdag 29 januari 2010 4:21
> Aan: [email protected]
> Onderwerp: Re: @RequireHttps with reverse proxy
>
> add an rfe to our jira
>
> -igor
>
> On Thu, Jan 28, 2010 at 7:43 AM, Boydens Joeri (OZ) <[email protected]> 
> wrote:
>> Hi,
>>
>>
>>
>> We have a wicket application running at the following address
>> http://myserver.domain.be:8082/myapplication.  When I do add the
>> @RequiredHttps annotation to my pages, wicket does a great job
>> redirecting my pages to https connection.  I get something like:
>>
>> https://myserver.domain.be:8443/myapplication/somepage .
>>
>>
>>
>> So far so good, but now I have to serve this application behind a
>> reverse proxy.  I have apache httpd2 set up with ProxyPass, and I added
>> a VirtualHost for my application, something like
>> http://myapplication.domain.be (this way port 8082 isn't visible and
>> /myapplication context path isn't visible either).
>>
>>
>>
>> This is working perfectly for non https pages, but when I go to a https
>> pages, I get redirected to the server application address
>> (https://myserver.domain.be:8843/myapplication).  This is because the
>> SwitchProtocolRequestTarget is building the redirect url based on the
>> httpservletrequest.getServerName()...
>>
>>
>>
>> Is it possible to extend/override this behavior ?
>>
>>
>>
>> Regards
>>
>> Joeri
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

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

Reply via email to