1. Caddy version (caddy version
):
v2.5.2 h1:eCJdLyEyAGzuQTa5Mh3gETnYWDClo1LjtQm2q9RNZrs=
2. How I run Caddy:
a. System environment:
On Ubuntu 22.04.1 LTS with a oracle VM 12 GB and 2 vCores. Arm server
b. Command:
sudo systemctl start caddy
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddyfile or JSON config:
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
api.voidmc.net {
# Set this path to your site's directory.
reverse_proxy 0.0.0.0:8080
# Another common task is to set up a reverse proxy:
# reverse_proxy localhost:8080
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
}
#dns.providers.cloudflare {
# tls {
#dns cloudflare (REDACTED CLOUDFLARE API_TOKEN)
# }
#}
*.voidmc.net {
tls {
dns cloudflare (REDACTED CLOUDFLARE API_TOKEN)
}
@foo host foo.voidmc.net
handle @foo {
reverse_proxy 0.0.0.0:8080
}
handle {
reverse_proxy 0.0.0.0:8080
}
}
dogs.voidmc.net {
reverse_proxy 0.0.0.0:8080
}
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
3. The problem I’m having:
When i attempt and go to https://test.voidmc.net/
for example i get a **test.voidmc.net** sent an invalid response.
Althought when i go to something like one of the things listed Ex: api.voidmc.net or foo.voidmc.net it works as exspected.
4. Error messages and/or full log output:
5. What I already tried:
I attempted to look at the documentation and couldn’t really find anything on it (Common Caddyfile Patterns — Caddy Documentation)