After mirgrating my Caddyfile from V1, everything is working except wordpress.
I used to use proxy with “transparent” and it worked well.
Now the first page of the wordpress is working fine but when I try to navigate to an other page, I get redirected to “https://localhost/category/europe/”
4. Error messages and/or full log output:
Connexion refused
5. What I already tried:
I tried to use php_fastcgi but it looks like it doesn’t work with reverse proxy
php_fastcgi is used if you don’t have a webserver for your PHP app and you want to use something like php-fpm to execute your PHP code. If you’re running another webserver (apache, nginx, etc) then reverse_proxy is what you should use.
The issue you’re seeing here is that you’re using incorrect placeholders for your header_up subdirectives. You can probably remove all of those entirely and it should work just fine. Caddy automatically passes through the Host, X-Forwarded-For (and will pass throughX-Forwarded-Proto in the current master branch, but not in RC3). For the other two if they’re actually required, you can use the {remote_host} and {http.request.port} placeholders instead.
WordPress doesn’t like being behind a proxy, from what I’ve heard. I don’t use WordPress, so you’ll have to make sure it’s configured not to redirect like it’s doing.