We use a separate domain for hosting demos in production (mdn.mozillademos.org) and local development (mdn-local.mozillademos.org) but missing something similar in the stage environment (e.g. "mdn-stage.mozillademos.org"). Please add a new domain as well as the Apache configuration needed to do that. The prod setup contains a Apache virtual host that proxies to the main wsgi app. This could be used to replicate the same pattern on stage. The domain needs SSL as well.
Hi :cyliang, as mentioned on IRC yesterday, the ticket to create mdn-stage.mozillademos.org
Can we do mdn-demos.allizom.org instead? If so, that's one SSL cert we don't have to pay for (especially for a stage site).
Assignee: server-ops-webops → cliang
Poking about in the Apache configs for prod and stage, I found that there is something similar to mdn.mozillademos.org for stage: developer-samples.allizom.org. I've attached a copy of the configs. The only difference I can see is an additional ProxyPassMatch line for URLs with files in addition to the existing one for samples. @jezdez: If I add in that ProxyPassMatch line, would the developer-samples.allizom.org domain work as a staging site for mdn.mozillademos.org? In testing, it looks like https://mdn.mozillademos.org/en-US/docs/Mozilla/MathML_Project/MathML_Torture_Test$samples/MathML_Torture_Test works where https://developer-samples.allizom.org/en-US/docs/Mozilla/MathML_Project/MathML_Torture_Test$samples/MathML_Torture_Test does not, but I think that's just a matter of tweaking the ALLOWED_HOSTS to include developer-samples.allizom.org.
:cyliang Yeah, that domain would work splendidly, thanks!
Flags: needinfo?(jezdez) → needinfo?(cliang)
After making changes to both the Apache config and to the ALLOWED_HOSTS setting for the staging site, the URL I used for testing  seems to work. However, there do seem to be some differences in the fonts offered which changes the size of the drop-down box. If this is sufficient for what you need, please let me know. Otherwise, I'll need a list of what other assets might need to be copied. =)  https://developer-samples.allizom.org/en-US/docs/Mozilla/MathML_Project/MathML_Torture_Test$samples/MathML_Torture_Test
:cyliang This needs an update of the ATTACHMENT_HOST setting on the stage servers as well. That should be: ATTACHMENT_HOST = 'developer-samples.allizom.org'
Setting has been added to the stage servers, pushed out, and the web server in staging has had a graceful restart.
That worked, thanks!
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.