You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by rg...@apache.org on 2018/09/12 08:16:56 UTC

[struts-site] branch master updated: establish https rewrite as recommended by Niklas Hedman

This is an automated email from the ASF dual-hosted git repository.

rgielen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/master by this push:
     new b2831f4  establish https rewrite as recommended by Niklas Hedman
b2831f4 is described below

commit b2831f4a10d6311800185550d0d8043558ff950d
Author: Rene Gielen <re...@gmail.com>
AuthorDate: Wed Sep 12 10:16:46 2018 +0200

    establish https rewrite as recommended by Niklas Hedman
---
 source/.htaccess | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/source/.htaccess b/source/.htaccess
index 9e224da..1be2f2e 100644
--- a/source/.htaccess
+++ b/source/.htaccess
@@ -1,6 +1,10 @@
 # This file is maintained at https://gitbox.apache.org/repos/asf?p=struts-site.git
 DirectoryIndex index.html
 
+RewriteEngine On
+RewriteCond %{HTTPS} !=on
+RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
+
 RedirectMatch \/docs\/version\-notes\-25([0-9]{1,2})+\.html   https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.$1
 RedirectMatch \/docs\/version\-notes\-23([0-9]{1,2})+\.html   https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.3.$1
 RedirectMatch \/docs\/version\-notes\-22([0-9]{1,2})+\.html   https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.2.$1


Re: [struts-site] branch master updated: establish https rewrite as recommended by Niklas Hedman

Posted by Lukasz Lenart <lu...@apache.org>.
Pushed a change to exclude /dtdts and it should be ok

śr., 12 wrz 2018 o 16:14 Lukasz Lenart <lu...@apache.org> napisał(a):
>
> I think this broke https://issues.apache.org/jira/browse/WW-4959 - we
> must exclude the "/dtds" path
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> śr., 12 wrz 2018 o 10:16 <rg...@apache.org> napisał(a):
> >
> > This is an automated email from the ASF dual-hosted git repository.
> >
> > rgielen pushed a commit to branch master
> > in repository https://gitbox.apache.org/repos/asf/struts-site.git
> >
> >
> > The following commit(s) were added to refs/heads/master by this push:
> >      new b2831f4  establish https rewrite as recommended by Niklas Hedman
> > b2831f4 is described below
> >
> > commit b2831f4a10d6311800185550d0d8043558ff950d
> > Author: Rene Gielen <re...@gmail.com>
> > AuthorDate: Wed Sep 12 10:16:46 2018 +0200
> >
> >     establish https rewrite as recommended by Niklas Hedman
> > ---
> >  source/.htaccess | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/source/.htaccess b/source/.htaccess
> > index 9e224da..1be2f2e 100644
> > --- a/source/.htaccess
> > +++ b/source/.htaccess
> > @@ -1,6 +1,10 @@
> >  # This file is maintained at https://gitbox.apache.org/repos/asf?p=struts-site.git
> >  DirectoryIndex index.html
> >
> > +RewriteEngine On
> > +RewriteCond %{HTTPS} !=on
> > +RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
> > +
> >  RedirectMatch \/docs\/version\-notes\-25([0-9]{1,2})+\.html   https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.$1
> >  RedirectMatch \/docs\/version\-notes\-23([0-9]{1,2})+\.html   https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.3.$1
> >  RedirectMatch \/docs\/version\-notes\-22([0-9]{1,2})+\.html   https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.2.$1
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [struts-site] branch master updated: establish https rewrite as recommended by Niklas Hedman

Posted by Lukasz Lenart <lu...@apache.org>.
I think this broke https://issues.apache.org/jira/browse/WW-4959 - we
must exclude the "/dtds" path


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

śr., 12 wrz 2018 o 10:16 <rg...@apache.org> napisał(a):
>
> This is an automated email from the ASF dual-hosted git repository.
>
> rgielen pushed a commit to branch master
> in repository https://gitbox.apache.org/repos/asf/struts-site.git
>
>
> The following commit(s) were added to refs/heads/master by this push:
>      new b2831f4  establish https rewrite as recommended by Niklas Hedman
> b2831f4 is described below
>
> commit b2831f4a10d6311800185550d0d8043558ff950d
> Author: Rene Gielen <re...@gmail.com>
> AuthorDate: Wed Sep 12 10:16:46 2018 +0200
>
>     establish https rewrite as recommended by Niklas Hedman
> ---
>  source/.htaccess | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/source/.htaccess b/source/.htaccess
> index 9e224da..1be2f2e 100644
> --- a/source/.htaccess
> +++ b/source/.htaccess
> @@ -1,6 +1,10 @@
>  # This file is maintained at https://gitbox.apache.org/repos/asf?p=struts-site.git
>  DirectoryIndex index.html
>
> +RewriteEngine On
> +RewriteCond %{HTTPS} !=on
> +RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
> +
>  RedirectMatch \/docs\/version\-notes\-25([0-9]{1,2})+\.html   https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.$1
>  RedirectMatch \/docs\/version\-notes\-23([0-9]{1,2})+\.html   https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.3.$1
>  RedirectMatch \/docs\/version\-notes\-22([0-9]{1,2})+\.html   https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.2.$1
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org