404 not served on this interface

So, I use ZeroTier, and I want to setup a website that will only work when accessed via the ZeroTier network. I have DNS entries pointing to the ZeroTier IP (dig linux.netbros.net).

I setup a Caddyfile to handle the hostname, but I get:

404 Site linux.netbros.net is not served on this interface

The entry on the Caddyfile:

linux.netbros.net {
        root /var/www/linux.netbros.net

        log /var/log/caddy/linux.netbros.net.log {
                rotate_size 1
                rotate_age  7
                rotate_keep 1
        tls off

Is linux.netbros.net in the list of sites Caddy outputs when you start it up in this configuration?

This is what I see:

Activating privacy features... done.
WARNING: File descriptor limit 1024 is too low for production servers. At least 8192 is recommended. Fix with "ulimit -n 8192".

Why will it be using port 2015?

You’ve disabled Automatic HTTPS (with tls off). The default port Caddy uses is port 2015.

When I want to specify a HTTP-only site in Caddy, I generally avoid using tls off and instead specify the scheme in the site label, i.e. http://linux.netbros.net.

Interesting approach. It is working now. Thanks!

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