Changes between Version 12 and Version 13 of Mirroring
- Timestamp:
- Mar 15, 2016, 3:56:37 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Mirroring
v12 v13 81 81 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. 82 82 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. 84 84 85 85 Directory listings should be turned on. URL spelling correction and multiviews must be turned off. There are sample web server configurations below. … … 207 207 }}} 208 208 209 If you are serving MacPorts files from subdirectories o n 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/...:209 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/...: 210 210 211 211 {{{ … … 214 214 }}} 215 215 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.216 Place these directives inside the `VirtualHost` directives for your MacPorts mirror hostnames. 217 217 218 218 === Sample nginx configuration … … 273 273 }}} 274 274 275 If you are serving MacPorts files from subdirectories o n 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/...:275 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/...: 276 276 277 277 {{{ 278 278 location ^~ /pub/macports/packages(/.*)?$ { 279 return 301 http:// localhost.packages.macports.org$1;279 return 301 http://abc.xy.packages.macports.org$1; 280 280 } 281 281 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 286 Place these directives inside the `server` directives for your MacPorts mirror hostnames. 287 287 288 288 === Sample rsyncd configuration