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

support "server" directive in main context #3

Closed
wants to merge 3 commits into from

Conversation

mohammed90
Copy link
Member

As per issue #2, it seems that the server directive is expected to be used in the main context. This should resolve that part.

As for map, Caddy doesn't currently have an equivalent for it (caddyserver/caddy#2824). It can probably be supported within the adapter, but that'd be a tad complex.

Updates #2

@mholt
Copy link
Member

mholt commented Feb 14, 2020

Thanks @mohammed90 !

Is this correct, though? Can we assume that a server context outside of an http context is an HTTP server?

@mohammed90
Copy link
Member Author

Oops, you're right. I've just tested using server without http on nginx, and it complained with "server" directive is not allowed here. I'll close this PR.

We need the commit ff981a2 though.

@mohammed90 mohammed90 closed this Feb 14, 2020
@mohammed90 mohammed90 deleted the partial-fix-2 branch February 14, 2020 21:35
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