I’m using caddy to reverse_proxy to a nuxt app, but when trying to add some 301 redirects on the caddyfile in order to redirect some old url paths into a new location, the redirect is not happening.
2. Error messages and/or full log output:
No error message, Caddy just ignores the redirect and sends the request with the old url to nuxt, which in turn gives a 404 error (route not found)
Sorry about this post, it was actually a PEBKAC issue
For some reason I had another caddy process running in the background that was using a default configuration apparently.
After disabling it and running with the correct Caddyfile it still wouldn’t work until i changed the first line from :443 to localhost:443 (without the localhost part it was apparently assuming the servername)
Either way, the (not a) problem is now gone and redirect is working correctly.
Sorry again for taking some of your time but thanks anyway!