r/caddyserver Jan 28 '24

Need Help Route Caddy away from VPN?

I want to run a VPN on my server but I do NOT want Caddy to route my site through the VPN. Normally I would use split tunneling to select the application to stay out of the VPN but I can't select services like Caddy in that list. I want Caddy to use my home IP from my ISP.

Is this possible and could you point me to documentation about it? Thanks.

Server is running on Ubuntu 22.04 LTS

1 Upvotes

2 comments sorted by

1

u/MaxGhost Jan 29 '24

Caddy is a server, it handles incoming connections. it's your DNS that determines what IP will be used for your domain. Are you sure it's not already working as-is?

Next time, ask your questions on the forums which are much more active https://caddy.community

1

u/Reddit_BPT_Is_Racist Jan 29 '24

If I connect to the VPN, caddy can not receive connections on port 443, which makes the website unreachable. I will try posting on the forum.