Nginx + Apache + Wordpress redirects to localhost/127.0.0.1

This is an old question, but as I come across...

 location ~ \.php$ {

It's not enough to proxy requests to WordPress. Basically, you should do it the other way around :

Send all static file requests to Nginx explicitly :

location ~ \.(css|js|ico|jpg|jpeg|png|gif|svg|pdf)$ {
    try_files $uri $uri/ /index.html;
}

Then proxy the rest to Apache :

location / {
    proxy_set_header Host $host;
    proxy_pass http://127.0.0.1:8080;
}