[MacPorts] #69013: MacPorts News Error 503
MacPorts
noreply at macports.org
Sun Dec 31 21:52:19 UTC 2023
#69013: MacPorts News Error 503
----------------------------------+---------------------
Reporter: thomasrussellmurphy | Owner: admin@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: server/hosting | Version:
Resolution: | Keywords:
Port: |
----------------------------------+---------------------
Comment (by ryandesign):
Clemens or Rainer, could you check what the Apache log on Braeburn says
after you access https://www.macports.org/news/?
As a refresher, all of www.macports.org is served by Apache on our server
Braeburn but for URLs under /news it uses a reverse proxy to get its
content from GitHub Pages. We configure GitHub Pages in a nonstandard way:
we have a [source:macports.github.io/CNAME CNAME file] that tells GitHub
to redirect any requests for macports.github.io to www.macports.org so
that if some user guesses that our web site might be macports.github.io,
they are redirected to the canonical hostname. What's nonstandard about it
is that www.macports.org points to Braeburn, not GitHub Pages. The reverse
proxy configuration on Braeburn for /news forwards requests to
http://macports.github.io/news but sets a custom Host header of
www.macports.org so that GitHub Pages will return the real content and not
a redirect. On the command line, this is still working for me:
{{{
% curl -s http://macports.github.io/news/ -H 'Host: www.macports.org' |
head -n8
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>News</title>
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69013#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list