You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Samuel Berthelot <gr...@gmail.com> on 2017/01/17 11:12:41 UTC

Fwd: redirection from non-www to www through HTTPS takes longer than HTTP

Hello,

I have enabled SSL for my site in the vhost file. I also have the
redirection for the non-www to www over port 80:

<VirtualHost 62.210.85.6:80>
 ServerName pretty-story.com
 Redirect permanent / https://www.pretty-story.com/
</VirtualHost>

However it takes a lot longer (about 2 seconds) to redirect from non-www to
www over https.

So if I type http://pretty-story.com, it quickly resolves to
https://www.pretty-story.com but if I type https://pretty-story.com it
takes more than 2 seconds to resolve to https://www.pretty-story.com !

I tried to add the following :

<VirtualHost 62.210.85.6:443>
  ServerName pretty-story.com
  Redirect permanent / https://www.pretty-story.com/
</VirtualHost>

But then the website becomes inaccessible.

What should I do ?

Here's the results on pingdom (using Sweden because my CDN is only active
in Europe):

   -

   https://www.pretty-story.com -> *874 ms*

   https://tools.pingdom.com/#!/8cyCy/https://www.pretty-story.com
   -

   http://www.pretty-story.com -> *1.04s*

   https://tools.pingdom.com/#!/laUz9/http://www.pretty-story.com
   -

   http://pretty-story.com -> *947 ms*

   https://tools.pingdom.com/#!/cohyrq/http://pretty-story.com
   -

   https://pretty-story.com -> *2.51s* !!!!!!!!!!!

   https://tools.pingdom.com/#!/7s1PK/https://pretty-story.com

Re: redirection from non-www to www through HTTPS takes longer than HTTP

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Hi,
This query doesn't look like it relates to Apache Isis.

My guess is you should post to the mailing list for https://httpd.apache.org
.

Thx,
Dan

On Tue, 17 Jan 2017, 11:51 Samuel Berthelot, <gr...@gmail.com> wrote:

> Hello,
>
> I have enabled SSL for my site in the vhost file. I also have the
> redirection for the non-www to www over port 80:
>
> <VirtualHost 62.210.85.6:80>
>  ServerName pretty-story.com
>  Redirect permanent / https://www.pretty-story.com/
> </VirtualHost>
>
> However it takes a lot longer (about 2 seconds) to redirect from non-www to
> www over https.
>
> So if I type http://pretty-story.com, it quickly resolves to
> https://www.pretty-story.com but if I type https://pretty-story.com it
> takes more than 2 seconds to resolve to https://www.pretty-story.com !
>
> I tried to add the following :
>
> <VirtualHost 62.210.85.6:443>
>   ServerName pretty-story.com
>   Redirect permanent / https://www.pretty-story.com/
> </VirtualHost>
>
> But then the website becomes inaccessible.
>
> What should I do ?
>
> Here's the results on pingdom (using Sweden because my CDN is only active
> in Europe):
>
>    -
>
>    https://www.pretty-story.com -> *874 ms*
>
>    https://tools.pingdom.com/#!/8cyCy/https://www.pretty-story.com
>    -
>
>    http://www.pretty-story.com -> *1.04s*
>
>    https://tools.pingdom.com/#!/laUz9/http://www.pretty-story.com
>    -
>
>    http://pretty-story.com -> *947 ms*
>
>    https://tools.pingdom.com/#!/cohyrq/http://pretty-story.com
>    -
>
>    https://pretty-story.com -> *2.51s* !!!!!!!!!!!
>
>    https://tools.pingdom.com/#!/7s1PK/https://pretty-story.com
>