Changes between Version 12 and Version 13 of Mirroring


Ignore:
Timestamp:
Mar 15, 2016, 3:56:37 PM (8 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

only suggest redirects for MacPorts mirror hostnames; fix hostnames in nginx sample redirect configuration

Legend:

Unmodified
Added
Removed
Modified
  • Mirroring

    v12 v13  
    8181The 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.
    8282
    83 **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.
     83**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.
    8484
    8585Directory listings should be turned on. URL spelling correction and multiviews must be turned off. There are sample web server configurations below.
     
    207207}}}
    208208
    209 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/...:
     209If 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/...:
    210210
    211211{{{
     
    214214}}}
    215215
    216 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.
     216Place these directives inside the `VirtualHost` directives for your MacPorts mirror hostnames.
    217217
    218218=== Sample nginx configuration
     
    273273}}}
    274274
    275 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/...:
     275If 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/...:
    276276
    277277{{{
    278278    location ^~ /pub/macports/packages(/.*)?$ {
    279         return 301 http://localhost.packages.macports.org$1;
     279        return 301 http://abc.xy.packages.macports.org$1;
    280280    }
    281281    location ^~ /pub/macports/distfiles(/.*)?$ {
    282         return 301 http://localhost.distfiles.macports.org$1;
    283     }
    284 }}}
    285 
    286 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.
     282        return 301 http://abc.xy.distfiles.macports.org$1;
     283    }
     284}}}
     285
     286Place these directives inside the `server` directives for your MacPorts mirror hostnames.
    287287
    288288=== Sample rsyncd configuration