You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2023/04/05 20:58:13 UTC
[Bug 66556] New: Addind RemoteIpValve redirects the requests to http port instead of expected https.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66556
Bug ID: 66556
Summary: Addind RemoteIpValve redirects the requests to http
port instead of expected https.
Product: Tomcat 8
Version: 8.5.86
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: sonipa@vmware.com
Target Milestone: ----
As per the STIG requirement we added the remoteIpValve for logging the clientIp
in logs, after adding remoteIpValve requests are redirects to a URL using the
http protocol instead of the expected https protocol. For all requests we are
getting 302 http status.
Below code we added :
<Valve className="org.apache.catalina.valves.RemoteIpValve"
remoteIpHeader="x-forwarded-for"
remoteIpProxiesHeader="x-forwarded-by"
protocolHeader="x-forwarded-proto"
protocolHeaderHttpsValue="https"
/>
Please let us know if any further modifications needs to be done while
configuring the tomcat.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 66556] Addind RemoteIpValve redirects the requests to http port instead of expected https.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66556
Christopher Schultz <ch...@christopherschultz.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
Please attach your <Connector> configuration with any secrets removed.
I suspect that the <Connector> is not marked with scheme="https" or some
related configuration setting.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 66556] Addind RemoteIpValve redirects the requests to http port instead of expected https.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66556
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
I suspect the x-forwarded-proto header value in the request is not as expected.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 66556] Addind RemoteIpValve redirects the requests to http port instead of expected https.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66556
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Mark Thomas <ma...@apache.org> ---
No response to follow-up questions. All the evidence is that this is a
configuration issue.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org