Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graylog 6.0 browsing fails with nginx https reverse proxy and path prefix #19210

Closed
hydrapolic opened this issue Apr 30, 2024 · 3 comments
Closed
Assignees
Labels

Comments

@hydrapolic
Copy link

Expected Behavior

Browsing the web UI should work fine.

Current Behavior

The links are:
https://log.domain.tld/graylog/graylog/search
https://log.domain.tld/graylog/graylog/streams

Which ends up with a "Page not found".

Possible Solution

Steps to Reproduce (for bugs)

  1. Login and try to browse the UI

Context

I'm trying to create a new setup with Graylog 6 behind nginx reverse proxy with a path prefix and https. This setup works for Graylog 5.2, but fails for Graylog 6.0.

The problem is that after login, the links are:
https://log.domain.tld/graylog/graylog/search
https://log.domain.tld/graylog/graylog/streams

Which ends up with a "Page not found".

server_name log.domain.tld;

location /graylog/ {
  proxy_set_header Host $host;
  proxy_set_header X-Forwarded-Host $host;
  proxy_set_header X-Forwarded-Server $host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Graylog-Server-URL https://$host/graylog/;
  rewrite ^/graylog/(.*)$ /$1 break;
  proxy_pass http://graylog:9000;
}

After removing the path prefix (serving directly from /) it works fine.

Your Environment

  • Graylog Version: 6.0.0-rc.4-1
  • Java Version: 17.0.11
  • OpenSearch Version: 2.13.0
  • MongoDB Version: 7.0.8
  • Operating System: Linux Gentoo / Docker
  • Browser version: Chromium 122.0.6261.128
@hydrapolic hydrapolic added the bug label Apr 30, 2024
@thll
Copy link
Contributor

thll commented Apr 30, 2024

Thanks for the report @hydrapolic! It looks like this is the same issue as #18463.

@hydrapolic
Copy link
Author

Yes, thanks @thll, missed that one.

@mpfz0r
Copy link
Member

mpfz0r commented May 20, 2024

Duplicate of #18463

@mpfz0r mpfz0r marked this as a duplicate of #18463 May 20, 2024
@mpfz0r mpfz0r closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants