Caddy only serving on ipv6


(Wqrld) #1

My caddy webserver is only listening on ipv6 ::::443 and ::::80 Because of this i can not access my website. The machine has ipv4 connectivity

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 96:00:00:11:75:22 brd ff:ff:ff:ff:ff:ff
inet 195.201.229.81/32 brd 195.201.229.81 scope global eth0
   valid_lft forever preferred_lft forever
inet 195.201.229.81/24 brd 195.201.229.255 scope global eth0
   valid_lft forever preferred_lft forever
inet6 fe80::9400:ff:fe11:7522/64 scope link
   valid_lft forever preferred_lft forever

Is there any way to force caddy to use ipv4?

The inet6 part on the bottom is nowhere in my interfaces or interfaces.d so i hope it doesn’t matter.


(Matt Holt) #2

Can you show us your full, unredacted Caddyfile? And the full command to run Caddy?


(Wqrld) #3

command:

caddy

file:

testsite.com {
root /var/www/html
}

(it happens with every configuration. I am able to visit the site now but i still dont know if people without ipv6 can access it)