You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2016/10/22 08:26:58 UTC
[jira] [Comment Edited] (MNGSITE-261) .htaccess file forces http:
for several redirects
[ https://issues.apache.org/jira/browse/MNGSITE-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15597432#comment-15597432 ]
Sebb edited comment on MNGSITE-261 at 10/22/16 8:26 AM:
--------------------------------------------------------
Thanks, that's better.
However, there are still some entries which may change from http: to https:
{code}
RedirectMatch permanent ^/repository-manager/(.*)$ https://archiva.apache.org/$1
RedirectMatch permanent ^/archiva(.*)$ https://archiva.apache.org$1
RedirectMatch permanent ^/continuum(.*)$ https://continuum.apache.org$1
{code}
AFAIK, it should just work to omit the scheme entirely, i.e.
{code}
RedirectMatch permanent ^/repository-manager/(.*)$ //archiva.apache.org/$1
RedirectMatch permanent ^/archiva(.*)$ //archiva.apache.org$1
RedirectMatch permanent ^/continuum(.*)$ //continuum.apache.org$1
{code}
was (Author: sebb@apache.org):
Thanks, that's better.
However, there are still some entries which may change from http: to https:
RedirectMatch permanent ^/repository-manager/(.*)$ https://archiva.apache.org/$1
46 RedirectMatch permanent ^/archiva(.*)$ https://archiva.apache.org$1
47 RedirectMatch permanent ^/continuum(.*)$ https://continuum.apache.org$1
AFAIK, it should just work to omit the scheme entirely, i.e.
RedirectMatch permanent ^/repository-manager/(.*)$ //archiva.apache.org/$1
46 RedirectMatch permanent ^/archiva(.*)$ //archiva.apache.org$1
47 RedirectMatch permanent ^/continuum(.*)$ //continuum.apache.org$1
> .htaccess file forces http: for several redirects
> -------------------------------------------------
>
> Key: MNGSITE-261
> URL: https://issues.apache.org/jira/browse/MNGSITE-261
> Project: Maven Project Web Site
> Issue Type: Bug
> Reporter: Sebb
> Assignee: Michael Osipov
> Attachments: MSITE-261.patch
>
>
> The Maven site .htaccess file [1] has a lot of Redirect entries that force the use of http: even for URLs that were originally https:
> That seems wrong; the redirect should use the same scheme as the original URL.
> [1] https://svn-master.apache.org/repos/infra/websites/production/maven/content/.htaccess
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)