summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2021-01-19 14:16:06 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2021-01-19 14:16:06 -0700
commitd68cff8eb6211be10fc79d3e8d469562420b78cd (patch)
tree6182b9a420a658979fedb35da8e3dc6fc552cf4c /caddytest
parent8f6f9865d49d044e2fdc5e97bb0cc4fac155162e (diff)
httpcaddyfile: Skip TLS APs for HTTP-only hosts (fix #3977)
This is probably an invasive change, but existing tests continue to pass. It seems to make sense this way. There is likely an edge case I haven't considered.
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/http_only_hostnames.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/http_only_hostnames.txt b/caddytest/integration/caddyfile_adapt/http_only_hostnames.txt
new file mode 100644
index 0000000..d867e16
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/http_only_hostnames.txt
@@ -0,0 +1,45 @@
+# https://github.com/caddyserver/caddy/issues/3977
+http://* {
+ respond "Hello, world!"
+}
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":80"
+ ],
+ "routes": [
+ {
+ "match": [
+ {
+ "host": [
+ "*"
+ ]
+ }
+ ],
+ "handle": [
+ {
+ "handler": "subroute",
+ "routes": [
+ {
+ "handle": [
+ {
+ "body": "Hello, world!",
+ "handler": "static_response"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "terminal": true
+ }
+ ]
+ }
+ }
+ }
+ }
+} \ No newline at end of file