Hello. We recently upgraded to Graylog 3.0 and updated server.conf and everything is working, with the exception of our reverse proxy. Everything in the setup is the same with the exception of ‘X-Graylog-Server-URL https://$server_name/api’ which I changed to ‘X-Graylog-Server-URL https://$server_name/’.
When I hit the proxy, I see a 502 error, but when I hit the IP:9000 everything works. Any idea what might be happening?
@benvanstaveren I think so? I transferred all of the things that were supposed to be transferred. I assume if the web UI works at the IP:port then it would stand to reason that the UI should work with the proxy? In addition, if I do a curl from the proxy machine, I get the HTML for the Graylog web ui. That said, it still throws a 502.
With 3.0 do I have to specifically tell Graylog that it will be running at graylog.example.com?
Nope, you only need the external http uri setting if you’re running behind a loadbalancer (at least, that’s how I think it works), but yeah, I’m unsure as to why it wouldn’t work - could you maybe post your config (or the relevant pieces of it, at any rate) because I have no idea why it’d give you a 502
Okay so you can reach the UI on the 192 IP, but not through your reverse proxy? Are you sure the reverse proxy is pointed at the right IP/port? If you’re using nginx (I assume so), ensure the upstream statement and/or proxy-pass statement go to the 192 IP on port 9000.
Alternatively check the nginx error log, see what it has to say about it
Oh! I found it. It fails when you add the header: <p>org.glassfish.jersey.message.internal.HeaderValueException: Unable to parse "Accept" header value: "*/* X-Graylog-Server-URL: