[TriLUG] Help with proxy setup

Igor Partola igor at igorpartola.com
Tue Dec 3 16:04:03 EST 2013


By "works 80% of the time" do you mean that sometimes it works and
sometimes it doesn't? If so, doing DNS resolution is probably suspect. I
can say that at least older versions of nginx also ignored the DNS TTL in
this case, and would permanently cache any A records they got. If this is
still the case, it completely negates the flexibility you get from using
DNS vs hardcoding IP's.

As for CSS not loading... So what is your setup? It seems that you have one
frontend nginx instance, that then connects to more than one nginx server
on the backend server (servers?). Does nginx on the backend run WordPress
directly? Or is there apache2 involved somewhere as well?

The basic process for debugging this goes like this:

1. Check that you can fetch the CSS file on the backend server. Use curl to
request it as directly as possible. Inspect both access and error logs on
the backend server.
2. If the above step worked, then the issue is somewhere in the reverse
proxying chain. Try the next proxy server up from the very backend.
3. Repeat until you find the step where it does not work, then examine the
configuration for that proxy.

If step 1 fails immediately, there should be an error logged.

Igor


More information about the TriLUG mailing list