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

[Bug] set HTTP redirect correctly when behind a reverse proxy #1370

Closed
jeromeleonard opened this issue May 27, 2020 · 0 comments
Closed

[Bug] set HTTP redirect correctly when behind a reverse proxy #1370

jeromeleonard opened this issue May 27, 2020 · 0 comments
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@jeromeleonard
Copy link
Contributor

Request Type

Bug

Problem Description

When behind a reverse proxy like nginx, and redirection is set to a virtual directory, TH does not reply the good redirection (replies a HTTP 308).

Steps to Reproduce

set Nginx to redirect to a virtual directory:

      location /thehive {
                proxy_pass              http://127.0.0.1:9000/thehive;
                proxy_http_version      1.1;
                proxy_set_header        Host $host;
                proxy_set_header        X-Real-IP $remote_addr;
                proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header        X-Forwarded-Proto $scheme;
        }

Configure TheHive accordingly:

play.http.context="/thehive"

Complementary information

Screenshots of local PCAP on port 9000 (and 9001 for cortex as a comparison)

thehive
cortex

@jeromeleonard jeromeleonard added bug TheHive4 TheHive4 related issues labels May 27, 2020
@To-om To-om self-assigned this May 27, 2020
@To-om To-om modified the milestones: 4.0.0-RC4, 4.0.0-RC3 May 27, 2020
@To-om To-om closed this as completed May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

2 participants