Skip to content

Add support of try_files usage #840

Open
@zzjin

Description

@zzjin

Why do you need it?

When serving some static files with app, users want to access files with or without suffix.

How could it be?

Implement one annotation witch support try_files actions, like below:
higress.io/try_files: '$1 $1.html $1/index.html $1/'.

When user access one path, try response content of some more paths, eg, when user access example.com/a, response content using /a, /a.html,/a/index.html, /a/ inorder, and only return non 200 status code when all these paths returns null.

Other related information

nginx/try_files

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status

    In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions