Add mozillademos.org domain to MDN stage stack

RESOLVED FIXED

Status

RESOLVED FIXED
4 years ago
3 months ago

People

(Reporter: jezdez, Assigned: cliang)

Tracking

Details

(Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/812] )

(Reporter)

Description

4 years ago
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.
(Reporter)

Comment 1

4 years ago
Hi :cyliang, as mentioned on IRC yesterday, the ticket to create mdn-stage.mozillademos.org
Flags: needinfo?(cliang)

Updated

4 years ago
Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/812]
(Reporter)

Updated

4 years ago
Blocks: 1119433
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)

Updated

4 years ago
Assignee: server-ops-webops → cliang
Flags: needinfo?(cliang)
(Assignee)

Comment 3

4 years ago
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.
Flags: needinfo?(jezdez)
(Reporter)

Comment 4

4 years ago
:cyliang Yeah, that domain would work splendidly, thanks!
Flags: needinfo?(jezdez) → needinfo?(cliang)
(Assignee)

Comment 5

4 years ago
After making changes to both the Apache config and to the ALLOWED_HOSTS setting for the staging site, the URL I used for testing [1] 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. =)


[1] https://developer-samples.allizom.org/en-US/docs/Mozilla/MathML_Project/MathML_Torture_Test$samples/MathML_Torture_Test
Flags: needinfo?(cliang)
(Reporter)

Comment 6

4 years ago
: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'
Flags: needinfo?(cliang)
(Assignee)

Comment 7

4 years ago
Setting has been added to the stage servers, pushed out, and the web server in staging has had a graceful restart.
Flags: needinfo?(cliang)
(Reporter)

Comment 8

4 years ago
That worked, thanks!
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED

Updated

3 months ago
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.