Skip to content

Provide "pages" image based on previous experience (from prev projects) #14

Open

Description

@theanurin

Provide "pages" image based on previous experience (from prev projects)

To-Do

  • avoid a redirect problem

Activity

  1. self-assigned this
    on Jan 20, 2025
  2. theanurin commented on Jan 20, 2025

    @theanurin
    OwnerAuthor

    Do not forget avoid a redirect problem...

    curl --verbose --head https://landing11.sandbox.dev.cvyntar.p.zxteam.net/en-US/pages
    ...
    HTTP/2 301 
    location: http://landing11.sandbox.dev.cvyntar.p.zxteam.net:8080/en-US/pages/
    

    Here we can see redirect on internal port 8080.
    This happens due to $uri/ configuration of try_files.

    It is possible to check directory’s existence by specifying a slash at the end of a name

    When Nginx finds a directory using try_files in this way, it issues an external redirection to a URL with a trailing /. URLs with a trailing / that resolve to a directory are then processed by the index module.

    See https://stackoverflow.com/a/76870105/2011679

    Probably solution is port_in_redirect off;
    See https://suyashsingh.in/blog/removing_port_numbers_in_nginx_try_files_redirect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions