Thanks, remarks below.

On Tue, May 2, 2017 at 12:12 AM, Mark Thomas <ma...@apache.org> wrote:

> On 01/05/17 14:23, Yuval Schwartz wrote:
> > Tomcat version: 8.0.22
> > jdk: 1.8.0_05
> >
> > I have a webapp that uses a tomcat server behind a load balancer.
> >
> > I recently added a the option to connect to my webapp via https.
> >
> > I would like to redirect all http requests to https.
> > I achieved this by implementing the instruction outlined here:
> > https://elastx.zendesk.com/hc/en-us/articles/214238826-
> Force-https-with-Tomcat
> >
> > However, I notice that this performs a redirect with repsonse code 302
> > (moved temporarily). I would like the response code to be 301.
> >
> > I found this bug report on the matter:
> > https://bz.apache.org/bugzilla/show_bug.cgi?id=59399
> >
> > Does this mean that in order to achieve a 301 redirect, I need to update
> my
> > tomcat version?
>
> Yes.
>

Will this automatically make the redirect use a 301 response code, or is
there a setting that I need to set?


>
> > Is there anyway to achieve a 301 redirect without updating
> > the tomcat version?
>
> Without patching Tomcat, no. And that isn't recommended.
>
>
I actually didn't know that I should be updating minor versions regularly.
Is there any recommendation as to the frequency that I should be doing this?


> Mark
>

Thank you.


>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to