Bug 1162293
| Summary: | Unable to reverse proxy traffic to JON UI | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Viet Nguyen <vnguyen> | ||||
| Component: | UI | Assignee: | Libor Zoubek <lzoubek> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Viet Nguyen <vnguyen> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | JON 3.3.0 | CC: | loleary, miburman, theute | ||||
| Target Milestone: | ER01 | ||||||
| Target Release: | JON 3.3.1 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-02-27 19:58:18 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Viet Nguyen
2014-11-10 18:57:47 UTC
This issue happens because JON GWT client sends "RHQ_Session" http header to server to authorize itself (once it recieves value during login process). By default headers containing underscore are ignored by nginx and not bypassed to backend server. Viet, you can enable it this way:
server {
listen 80;
underscores_in_headers on;
location / {
proxy_pass http://localhost:7080/;
}
}
then you should be able to log in.
Fix for this BZ is to rename RHQ_Session header to RHQ-Session, then it will work behind nginx without underscores_in_headers.
Thanks. That works! Keeping the BZ open as this tweak is worth a KB entry. branch: master link: https://github.com/rhq-project/rhq/commit/d497b14b8 time: 2014-11-13 10:33:00 +0100 commit: d497b14b896fb2c25253f0d32a5598b5c8685046 author: Libor Zoubek - lzoubek message: Bug 1162293 - Unable to reverse proxy traffic to JON UI Got rid of _ in RHQ specific HTTP header names, so when running behind nginx, directive underscores_in_headers on; is on longer required Cherry-picked to release/jon3.3.x:
commit 48d455eb4bece45e031ff741b2484329d537679d
Author: Libor Zoubek <lzoubek>
Date: Thu Nov 13 10:33:00 2014 +0100
Bug 1162293 - Unable to reverse proxy traffic to JON UI
Got rid of _ in RHQ specific HTTP header names, so when running behind
nginx, directive underscores_in_headers on; is on longer required
(cherry picked from commit d497b14b896fb2c25253f0d32a5598b5c8685046)
Moving to ON_QA as available for test with the latest 3.3.1.ER01 bits from here: http://download.devel.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/12/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip I can now log in JON via reserve proxy URL Created attachment 984872 [details]
nginx access.log
|