Subdomain proxy to gitea

I am attempting to forward a subdomain to a web service on a different port(gitea). But when I add the new domain caddy fails to start even though I validate the file and it reports as fine. If I remove the proxy part the normal domain works just fine.

This is my caddy file. As a note I have removed the email for the tls and it still fails to start caddy.

https://mydomain.com {
root /var/www
gzip
tls contact@mydomain.com

}

git.stevenwashere.com {
proxy / 127.0.0.1:3000
tls contact@mydomain.com
}

What’s the error message you get?

1 Like

Actually I figured it out. It was just a misunderstanding of how the caddyfile likes to be formatted. I appreciate the response and I love caddy so far. Ive never wannted to set things up like this with other web servers with caddy I am looking for more to do.

1 Like

Great! If you have a chance and can post what your error and/or fix is, others who are searching later can be helped by your experience. If you want. :slight_smile: Thanks for participating!

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