Powie
(Powie)
February 12, 2020, 8:32am
1
Hi, we are running graylog 2.x and also 3.0 behind a Apache reverse proxy at subdir /graylog for months. Now I try to update this to release 3.2. This brings the problem that Graylog reports this error after login:
Could not load streams
Loading streams failed with status: Error: cannot GET https://xxxxxxxxxxxxxxxx/graylog/api/streams (401)
We have migrated to 3.2 with all settings like in the previous version.
http_bind_address = 0.0.0.0:9000
http_publish_uri = http://$http_bind_address/graylog/
http_external_uri = https://xxxxxxxxx/graylog/
trusted_proxies = …
what do I miss?
jan
(Jan Doberstein)
February 12, 2020, 11:18am
2
what is the configuration of your proxy?
Powie
(Powie)
February 12, 2020, 1:00pm
3
This is the confguration, this is writtn by ansible. mod_auth_mellon is user for SSO Login. Maybee a part of the problem…
<Location /graylog>
RequestHeader set X-Graylog-Server-URL "https://{{ HTTPD_HOST }}/graylog"
RequestHeader set X-WEBAUTH-USER "%{Remote-User}e"
RequestHeader set X-WEBAUTH-EMAIL "%{Remote-Email}e"
# graylog
ProxyPass http://{{ HTTPD_HOST }}:9000/graylog disablereuse=On ttl=60 max=20
ProxyPassReverse http://{{ HTTPD_HOST }}:9000/graylog
</Location>
If I try to access /graylog/api/streams, it opens a basic auth prompt…
jan
(Jan Doberstein)
February 13, 2020, 6:46am
4
as you can see here in the third example of nginx, you need to use a rewrite rule to run Graylog in a “folder” …
https://docs.graylog.org/en/3.2/pages/configuration/web_interface.html#nginx
I’m not a Apache configuration pro - but you need to add this too to your configuration. I guess.
system
(system)
Closed
February 27, 2020, 6:46am
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.