[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-cvs] [424] Document file redirections to the dedicated domain.
From: |
ineiev |
Subject: |
[Savannah-cvs] [424] Document file redirections to the dedicated domain. |
Date: |
Tue, 6 Oct 2020 06:40:39 -0400 (EDT) |
Revision: 424
http://svn.savannah.gnu.org/viewvc/?view=rev&root=administration&revision=424
Author: ineiev
Date: 2020-10-06 06:40:38 -0400 (Tue, 06 Oct 2020)
Log Message:
-----------
Document file redirections to the dedicated domain.
Modified Paths:
--------------
trunk/sviki/FrontEndHostRedirection.mdwn
Modified: trunk/sviki/FrontEndHostRedirection.mdwn
===================================================================
--- trunk/sviki/FrontEndHostRedirection.mdwn 2020-10-02 01:01:02 UTC (rev
423)
+++ trunk/sviki/FrontEndHostRedirection.mdwn 2020-10-06 10:40:38 UTC (rev
424)
@@ -3,9 +3,14 @@
Savannah handles three types of hosts redirection:
-1. shortcut URL to full URL (.e.g `*.sv.gnu.org` => `*.savannah.gnu.org`).
+1. shortcut URL to full URL (e.g. `*.sv.gnu.org` => `*.savannah.gnu.org`).
2. `*.gnu.org` <=> `*.nongnu.org`, depending on project's type.
3. automatic-login to both `savannah.gnu.org` and `savannah.nongnu.org`
+4. attachment requests from old URLs to dedicated domain
+ (`savannah.gnu.org/file/*` => `file.savannah.gnu.org/file/*`,
+ `savannah.gnu.org/submission-uploads/` =>
+ `file.savannah.gnu.org/submission-uploads/`) and non-file requests
+ from `file.savannah.*.org` to the original domain.
Shortcut URL redirection
------------------------
@@ -286,3 +291,27 @@
2. `login.php` (this time called on host `savannah.nongnu.org`) will see
that `$from_brother=1`, and will set the cookie/session for this domain
as well, then redirect back to `savannah.gnu.org/`.
+
+File redirection
+----------------
+
+Since July 2020, Savannah serves user-supplied files from a separate
+domain for security reasons. Old URLs are redirected to that domain,
+non-file requests are redirected to the main domain.
+
+ ServerAlias file.savannah.gnu.org
+
+ <If "%{HTTP_HOST} == 'savannah.gnu.org'">
+ RedirectPermanent /submissions_uploads/ \
+ https://file.savannah.gnu.org/submissions_uploads/
+ RedirectPermanent /file https://file.savannah.gnu.org/file
+ </If>
+ <If "%{REQUEST_URI} =~ m#^/((submissions_uploads/)|(file((/.*)?)$))#">
+ # Empty section: the server will redirect when %{REQUEST_URI}
+ # does _not_ match the above regular expression.
+ </If>
+ <ElseIf "%{HTTP_HOST} == 'file.savannah.gnu.org'">
+ RedirectPermanent / https://savannah.gnu.org/
+ </ElseIf>
+
+Likewise, for savanah.nongnu.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Savannah-cvs] [424] Document file redirections to the dedicated domain.,
ineiev <=