You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Qbyte Consulting <qb...@gmail.com> on 2016/06/02 14:12:11 UTC
http redirection to https port 443
Hi,
I've been trying to configure Jetty 9.2 to redirect http requests to https
port 443. No luck so far.
The app has confured web.xml to secure it.
I seem to recall that Tapestry (using 3.6) might have some kind of module
configuration for identifying ports to use?
As it stands http requests get converted to https requests but port 80 gets
inserted into the URL which of course does not work. The port needs to be
dropped or replaced with 443.
Any ideas if I am right and how to provide that secure port number
correctly or just drop the port number?
John
Re: http redirection to https port 443
Posted by Kalle Korhonen <ka...@gmail.com>.
No need to override BaseURLSource. You can just configure
SymbolConstants.HOSTPORT_SECURE to 443. The default is 0, which means use
request.serverPort. I'd say you are missing something from Jetty
configuration, since you are getting that port from the request, but add a
breakpoint to BaseURLSourceImpl.portExtension(..) and see how it behaves.
Kalle
On Thu, Jun 2, 2016 at 3:20 PM, Thiago H de Paula Figueiredo <
thiagohp@gmail.com> wrote:
> On Thu, 02 Jun 2016 11:12:11 -0300, Qbyte Consulting <
> qbyteconsulting@gmail.com> wrote:
>
> Hi,
>>
>
> Hello!
>
> Try overriding or decorating the BaseURLSource service.
>
>
>
>> I've been trying to configure Jetty 9.2 to redirect http requests to https
>> port 443. No luck so far.
>>
>> The app has confured web.xml to secure it.
>>
>> I seem to recall that Tapestry (using 3.6) might have some kind of module
>> configuration for identifying ports to use?
>>
>> As it stands http requests get converted to https requests but port 80
>> gets
>> inserted into the URL which of course does not work. The port needs to be
>> dropped or replaced with 443.
>>
>> Any ideas if I am right and how to provide that secure port number
>> correctly or just drop the port number?
>>
>> John
>>
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: http redirection to https port 443
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 02 Jun 2016 11:12:11 -0300, Qbyte Consulting
<qb...@gmail.com> wrote:
> Hi,
Hello!
Try overriding or decorating the BaseURLSource service.
>
> I've been trying to configure Jetty 9.2 to redirect http requests to
> https
> port 443. No luck so far.
>
> The app has confured web.xml to secure it.
>
> I seem to recall that Tapestry (using 3.6) might have some kind of module
> configuration for identifying ports to use?
>
> As it stands http requests get converted to https requests but port 80
> gets
> inserted into the URL which of course does not work. The port needs to be
> dropped or replaced with 443.
>
> Any ideas if I am right and how to provide that secure port number
> correctly or just drop the port number?
>
> John
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org