Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-5894

LSST the Docs Fastly Courtesy Redirects for directory paths

    XMLWordPrintable

    Details

      Description

      Currently if a user browses example.lsst.io/v/main/some-directory instead of example.lsst.io/v/main/some-directory they will receive an error.

      We should develop a scheme where Fastly can detect that such a path is a directory and redirect to the directory's index.html page.

        Attachments

          Issue Links

            Activity

            Hide
            jsick Jonathan Sick added a comment -

            Current stuck on implementing conditional redirects in Fastly based on the header in the initial response from S3. Asking for guidance at https://community.fastly.com/t/conditionally-serving-different-content-based-on-header-in-initial-backend-response/743?u=jsick.

            Show
            jsick Jonathan Sick added a comment - Current stuck on implementing conditional redirects in Fastly based on the header in the initial response from S3. Asking for guidance at https://community.fastly.com/t/conditionally-serving-different-content-based-on-header-in-initial-backend-response/743?u=jsick .
            Hide
            jsick Jonathan Sick added a comment -

            v22 of Fastly configs now work with courtesy re-directs.

            Show
            jsick Jonathan Sick added a comment - v22 of Fastly configs now work with courtesy re-directs.
            Hide
            jsick Jonathan Sick added a comment -

            The feature is now generally working in ltd-mason.lsst.io, ltd-keeper.lsst.io and sqr-006.lsst.io. Directory redirect objects can be added to other LTD products at any time.

            Show
            jsick Jonathan Sick added a comment - The feature is now generally working in ltd-mason.lsst.io, ltd-keeper.lsst.io and sqr-006.lsst.io. Directory redirect objects can be added to other LTD products at any time. Feature is documented at https://sqr-006.lsst.io/v/DM-5894/index.html#replicating-web-server-behavior-from-s3-s-rest-api LTD Mason automatically uploads directory redirect objects to S3 with each build A new LTD Mason CLI allows directory redirect objects to be retroactively added. LTD Keeper ensures that directory redirect objects are made for Editions
            Hide
            jsick Jonathan Sick added a comment -

            Hey J Matt Peterson [X]: could you take a quick look and sign-off on this? Everything is working, and I’ve described the redirection schema at a high level in a section of SQR-006 that I linked above. Thanks!

            Show
            jsick Jonathan Sick added a comment - Hey J Matt Peterson [X] : could you take a quick look and sign-off on this? Everything is working, and I’ve described the redirection schema at a high level in a section of SQR-006 that I linked above. Thanks!
            Hide
            jsick Jonathan Sick added a comment -

            J Matt Peterson [X]: I changed mason to explicitly check for /v and /builds directories. Feel free to check off “Reviewed.”

            Show
            jsick Jonathan Sick added a comment - J Matt Peterson [X] : I changed mason to explicitly check for /v and /builds directories. Feel free to check off “Reviewed.”
            Hide
            jmatt J Matt Peterson [X] (Inactive) added a comment -

            Reviewed and discussed with Jonathan. Some of the implementation details are hidden away in Fastly but noted and discussed in the SQR-006 documentation.

            Show
            jmatt J Matt Peterson [X] (Inactive) added a comment - Reviewed and discussed with Jonathan. Some of the implementation details are hidden away in Fastly but noted and discussed in the SQR-006 documentation.

              People

              Assignee:
              jsick Jonathan Sick
              Reporter:
              jsick Jonathan Sick
              Reviewers:
              J Matt Peterson [X] (Inactive)
              Watchers:
              J Matt Peterson [X] (Inactive), Jonathan Sick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.