Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add vhost.d includes to nginx.tmpl's https redirect server block#1618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dakotahawkins wants to merge1 commit intonginx-proxy:main
base:main
Choose a base branch
Loading
fromdakotahawkins:https-redirect-customization-points

Conversation

dakotahawkins
Copy link

Adds customization points to https redirect responses that are analogous
to other response handling. This gives you the opportunity to add
response headers or etc. before returning the 301 redirect.

If$host ordefault exist in/etc/nginx/vhost.d/, we rely on
nginx-proxy/acme-companion to add the Let's Encrypt acme challenge
location block there, so it's only included here if those files don't
exist.

New tests intest_ssl are similar to tests intest_custom, except they
expect 301 responses along with custom configs.

Fixes#1613

@buchdagbuchdag added type/featPR for a new feature type/fixPR for a bug fix type/testPR that add missing tests or correct existing tests labelsAug 3, 2021
Adds customization points to https redirect responses that are analogousto other response handling. This gives you the opportunity to addresponse headers or etc. before returning the 301 redirect.If `$host` or `default` exist in `/etc/nginx/vhost.d/`, we rely onnginx-proxy/acme-companion to add the Let's Encrypt acme challengelocation block there, so it's only included here if those files don'texist.New tests in `test_ssl` are similar to tests in `test_custom`, except theyexpect 301 responses along with custom configs.Fixesnginx-proxy#1613
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
type/featPR for a new featuretype/fixPR for a bug fixtype/testPR that add missing tests or correct existing tests
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Should nginx.tmpl's https_method=redirect block try to include vhost.d files?
2 participants
@dakotahawkins@buchdag

[8]ページ先頭

©2009-2025 Movatter.jp