[MacPorts] Mirroring modified

MacPorts noreply at macports.org
Tue Mar 15 08:56:39 PDT 2016


Page "Mirroring" was changed by ryandesign at macports.org
Diff URL: <https://trac.macports.org/wiki/Mirroring?action=diff&version=13>
Revision 13
Comment: only suggest redirects for MacPorts mirror hostnames; fix hostnames in nginx sample redirect configuration
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Mirroring
=========================================================================
--- Mirroring (version: 12)
+++ Mirroring (version: 13)
@@ -80,7 +80,7 @@
 
 The contents of the ''packages'' module should be made available directly under !http://abc.xy.packages.macports.org/ and the contents of the ''distfiles'' module should be made available directly under !http://abc.xy.distfiles.macports.org/. It is not necessary to provide the contents of the ''release'' or ''trunk'' modules via http.
 
-**Note:** If you are currently providing the contents of the ''packages'' or ''distfiles'' modules in a subdirectory of your MacPorts mirror hostname, or any other hostname, you should reconfigure your web server to provide the contents directly under the MacPorts mirror hostname, and let us know so we can update archive_sites.tcl and/or mirror_sites.tcl. You should configure HTTP 301 redirects from the previously-used URLs to the new ones.
+**Note:** If you are currently providing the contents of the ''packages'' or ''distfiles'' modules in a subdirectory of your MacPorts mirror hostname, you should reconfigure your web server to provide the contents directly under the MacPorts mirror hostname, and let us know so we can update archive_sites.tcl and/or mirror_sites.tcl. You should configure HTTP 301 redirects from the previously-used URLs to the new ones.
 
 Directory listings should be turned on. URL spelling correction and multiviews must be turned off. There are sample web server configurations below.
 
@@ -206,14 +206,14 @@
 </VirtualHost>
 }}}
 
-If you are serving MacPorts files from subdirectories on any of your hostnames, use `Redirect` directives to redirect those requests to their new locations. For example, these directives show how to redirect requests for !http://hostname/pub/macports/packages/... to !http://abc.xy.packages.macports.org/... and requests for !http://hostname/pub/macports/distfiles/... to !http://abc.xy.distfiles.macports.org/...:
+If you are serving MacPorts files from subdirectories of your MacPorts mirror hostnames, use `Redirect` directives to redirect those requests to their new locations. For example, these directives show how to redirect requests for !http://hostname/pub/macports/packages/... to !http://abc.xy.packages.macports.org/... and requests for !http://hostname/pub/macports/distfiles/... to !http://abc.xy.distfiles.macports.org/...:
 
 {{{
     Redirect 301 /pub/macports/packages http://abc.xy.packages.macports.org
     Redirect 301 /pub/macports/distfiles http://abc.xy.distfiles.macports.org
 }}}
 
-Place these directives inside the `VirtualHost` directives for each hostname from which you were serving the files at the old URLs, or use an include file.
+Place these directives inside the `VirtualHost` directives for your MacPorts mirror hostnames.
 
 === Sample nginx configuration
 
@@ -272,18 +272,18 @@
 }
 }}}
 
-If you are serving MacPorts files from subdirectories on any of your hostnames, use `return` directives inside a `location` directive to redirect those requests to their new locations. For example, these directives show how to redirect requests for !http://hostname/pub/macports/packages/... to !http://abc.xy.packages.macports.org/... and requests for !http://hostname/pub/macports/distfiles/... to !http://abc.xy.distfiles.macports.org/...:
+If you are serving MacPorts files from subdirectories of your MacPorts mirror hostnames, use `return` directives inside a `location` directive to redirect those requests to their new locations. For example, these directives show how to redirect requests for !http://hostname/pub/macports/packages/... to !http://abc.xy.packages.macports.org/... and requests for !http://hostname/pub/macports/distfiles/... to !http://abc.xy.distfiles.macports.org/...:
 
 {{{
     location ^~ /pub/macports/packages(/.*)?$ {
-        return 301 http://localhost.packages.macports.org$1;
+        return 301 http://abc.xy.packages.macports.org$1;
     }
     location ^~ /pub/macports/distfiles(/.*)?$ {
-        return 301 http://localhost.distfiles.macports.org$1;
-    }
-}}}
-
-Place these directives inside the `server` directives for each hostname from which you were serving the files at the old URLs, or use an include file.
+        return 301 http://abc.xy.distfiles.macports.org$1;
+    }
+}}}
+
+Place these directives inside the `server` directives for your MacPorts mirror hostnames.
 
 === Sample rsyncd configuration
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/Mirroring>
MacPorts <https://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'Mirroring' page.
If it was not you, please report to .


More information about the macports-changes mailing list