Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] add missing host for http option #775

Closed
wants to merge 1 commit into from
Closed

Conversation

Jubeki
Copy link
Contributor

@Jubeki Jubeki commented Dec 19, 2023

No description provided.

@Jubeki Jubeki changed the title [2.x] fix missing host for not https [2.x] fix missing host for not https option Dec 19, 2023
@nunomaduro
Copy link
Member

@Jubeki can you elaborate on why you think this fix is necessary?

@Jubeki
Copy link
Contributor Author

Jubeki commented Dec 20, 2023

Okay, my wording was a bad choice. I am not sure if it is a fix, but for me it is missing the host option, and I would assume that if you specify another host for some reason, it would be missing with the http option.

If you already have the host available, why not use it there too.

@Jubeki Jubeki changed the title [2.x] fix missing host for not https option [2.x] add missing host for http option Dec 20, 2023
@nunomaduro
Copy link
Member

I see. In fact, we made this change because typically, in an non-http scenarios, you don't want Caddy to validate the host. E.g: using NGINX proxy features, or even locally using a different domain.

@nunomaduro nunomaduro closed this Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants