I'm trying to serve a wordpress blog from another domain using proxy_pass.
to
I clearly also want to rewrite all the urls accordingly. What I did:
location /blog {
rewrite /blog(.*) /$1 break;
proxy_pass https://blog.domain.example/;
proxy_redirect off;
proxy_set_header Host $host;
}
Right now it's serving a completely white page and curl -i tells me that "HTTP/1.1 404 Not Found". Just to complete the information: https://blog.domain.example is using a certificate, https://domain.example another certificate. Can this be the root cause of the problem?
How can I fix this? Thanks in advance.