Skip to content

Got "hostname appears in more than one automation policy, making certificate management ambiguous" after updating to v2.4.0 #4161

@elvisw

Description

@elvisw

1. Caddy version

v2.4.0 h1:yHnnbawH2G3ZBP2mAJF4XBLnJanqhULLP/wu01Qi9Io=

2. Description

2a. What happens

This Caddyfile can work under v2.3.0, but when I update to 2.4.0, it doesn’t work anymore

Caddyfile
im.xxxx.com {
	tls {
		dns cloudflare xxxxxxxxxxxxxxxxxxxxx
	}
	reverse_proxy localhost:8000
}

im.xxxx.com/a273499c-5dc1-43d8-86fa-265d33b4bdab* {
	tls {
		dns cloudflare xxxxxxxxxxxxxxxxxxxxx
	}
	reverse_proxy localhost:20116 {
		transport http {
			versions h2c
		}
	}
}

im.xxxx.com/seafhttp* {
	tls {
		dns cloudflare xxxxxxxxxxxxxxxxxxxxx
	}
	uri strip_prefix seafhttp
	reverse_proxy localhost:8082
}

im.xxxx.com/media* {
	tls {
		dns cloudflare xxxxxxxxxxxxxxxxxxxxx
	}
	uri strip_prefix media
	root * /home/user1/seafile/seafile-server-latest/seahub/media
	file_server
}

I see similar issue #3906, but this should have been fix in v2.3.0.
So it's strange to see this happen again in v2.4.0. I guess this is a bug introduced in v2.4.0.

2b. Log output

May 11 16:07:38 im.xxxx.com caddy[1433]: {"level":"info","ts":1620720458.6414843,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":""}
May 11 16:07:38 im.xxxx.com caddy[1433]: run: adapting config using caddyfile: hostname appears in more than one automation policy, making certificate management ambiguous: im.xxxx.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions