[MacPorts] #61679: Add web server rewrite rules to Braeburn
MacPorts
noreply at macports.org
Fri Nov 27 08:42:12 UTC 2020
#61679: Add web server rewrite rules to Braeburn
----------------------------+---------------------
Reporter: ryandesign | Owner: admin@…
Type: enhancement | Status: new
Priority: High | Milestone:
Component: server/hosting | Version:
Keywords: | Port:
----------------------------+---------------------
Currently we use MaxCDN to serve our web site. A number of web server
rewrite rules are configured on the CDN:
* Requests for `/files/ports.tar.gz` are redirected 301 permanent to
`https://distfiles.macports.org/ports.tar.gz`
* Requests for `^/guide(/.*)?$` are redirected 301 permanent to
`https://guide.macports.org$1`
* Requests for `^/trac(/.*)?$` are redirected 301 permanent to
`https://trac.macports.org$1`
* Requests for `^/t/(\d+)$` are redirected 301 permanent to
`https://trac.macports.org/ticket/$1`
* Requests for `^/(?:feed\.xml|(?:post|news)(?:/.*)?)$` are proxied to our
GitHub Pages site at http://macports.github.io but with a forced Host
header of www.macports.org
* All other requests are handled by our old PHP-based web site hosted on
Braeburn
We have been notified that on December 2 we will no longer be able to use
MaxCDN for free. I am trying to find another CDN that will host us for
free, but have not been successful yet. Even if we do find another CDN,
they might not offer us the capability of configuring the web server rules
so that different paths can be handled by different origin servers.
Therefore, please configure the web server on Braeburn with the above
rules. MaxCDN uses nginx so their rules file can't be used directly on
Braeburn since that uses Apache.
--
Ticket URL: <https://trac.macports.org/ticket/61679>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list