creativecommons / sre-salt-prime

Site Reliability Engineering / DevOps SaltStack configuration files
MIT License
20 stars 9 forks source link

add second PDM redirect #290

Closed TimidRobot closed 1 month ago

TimidRobot commented 2 months ago

Description

add second PDM redirect

(a second redirect is needed instead of replacing the existing redirect because https://wiki.creativecommons.org/wiki/PDM_FAQ/ results in a 404)

Also see related development environment PR:

Deployed to staging and production Wed 10 Jul 2024 03:30:33 PM UTC

Tests

Command:

http --all --follow --headers http://localhost:8080/choose/mark/

After (fixed)

Output:

HTTP/1.1 302 Found
CF-Cache-Status: BYPASS
CF-RAY: 8a119d337dac102d-LAX
Connection: keep-alive
Content-Type: text/html; charset=iso-8859-1
Date: Wed, 10 Jul 2024 15:33:46 GMT
Location: https://wiki.creativecommons.org/wiki/PDM_FAQ
Server: cloudflare
Transfer-Encoding: chunked
Vary: Accept-Encoding

HTTP/1.1 200 OK
CF-Cache-Status: DYNAMIC
CF-RAY: 8a119d358b8952f5-LAX
Cache-Control: private, must-revalidate, max-age=0
Connection: keep-alive
Content-Encoding: gzip
Content-Language: en
Content-Type: text/html; charset=UTF-8
Date: Wed, 10 Jul 2024 15:33:47 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Last-Modified: Wed, 22 May 2024 08:29:07 GMT
Server: cloudflare
Transfer-Encoding: chunked
Vary: Accept-Encoding,Cookie
X-Content-Type-Options: nosniff

Checklist

Developer Certificate of Origin

For the purposes of this DCO, "license" is equivalent to "license or public domain dedication," and "open source license" is equivalent to "open content license or public domain dedication."

Developer Certificate of Origin ``` Developer Certificate of Origin Version 1.1 Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 1 Letterman Drive Suite D4700 San Francisco, CA, 94129 Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. ```