Starting caddy on 2 IP addresses

Hello,

My test server has multiple IPv4 and IPv6 addresses.
There is an option for caddy -host ipaddre/host to start listening on a single IP of hostname.
I tried to get this on 2 IP addresses, but that didn’t work.
Is this possible?

Like:
caddy -host 123.123.123.120,1223:123:12::120
or:
caddy -host 123.123.123.120,[1223:123:12:1::120]

Thank you!

Hello @sebastian,

I don’t know if that is possible only using the command line options, but you can create a Caddyfile in the root path of your website with this content and it should work:

123.123.123.120:80,
[1223:123:12:1::120]:80

root .

I hope it helps! :smiley:

3 Likes

Also related, follow this issue: https://github.com/mholt/caddy/issues/864

2 Likes

That is exactly where I am looking for. Didn’t realy have time to dive in to this. Let me do that tonight (Europe/Amsterdam timezone :slight_smile: )

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.