How can i use two Domain?

Im trying to restart caddy use command systemctl restart caddy.service
but Its not working.
my caddyFile is

www.furaov2ray.top {
tls 135807369216@gmail.com
timeouts none
proxy / 127.0.0.1:12345 {
websocket
}
}
furao.xyz{
gzip
proxy / 127.0.0.1:8080{
}
}

here is my caddy status

So , I want to know why it not working and how can I find caddy start log in my device?

ps:When I use this caddyFile , It’s can startup working well:

www.furaov2ray.top {
tls 135807369216@gmail.com
timeouts none
proxy / 127.0.0.1:12345 {
websocket
}
}

I want to use furao.xyz domain to proxy my tomcat on 8080,.So I want to know how to solve it . thanks.

Hi @forReak, welcome to the Caddy community.

Looks like you’ve got process logging enabled, so go ahead and post those logs - should give us an idea as to why Caddy is exiting.

thanks . i use journalctl --boot -u caddy.service to see the log ,and found furao.xyz and ‘{’ don‘t have a ‘space’ .

1 Like

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