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 2014/12/25 03:23:59 UTC
[Bug 57396] New: req.getRequestURL().toString() return incorrect
https://issues.apache.org/bugzilla/show_bug.cgi?id=57396
Bug ID: 57396
Summary: req.getRequestURL().toString() return incorrect
Product: Tomcat 7
Version: 7.0.57
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Servlet & JSP API
Assignee: dev@tomcat.apache.org
Reporter: 1279962985@qq.com
Created attachment 32332
--> https://issues.apache.org/bugzilla/attachment.cgi?id=32332&action=edit
The debug info
Browser <---> https <---> Nginx <---> http <---> Tomcat
Above is the structure that I use, and I use
org.apache.catalina.filters.RemoteIpFilter to get the real ip and scheme.
But when I use the getRequestURL() method to get the url in the user's browser,
it returns a incorrect scheme.
For example, in user's browser, the location is https://www.example.com/foo/bar
, but the getRequestURL() method returns http://www.example.com/foo/bar .
--
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 57396] req.getRequestURL().toString() return incorrect
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57396
Rainer Jung <ra...@kippdata.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
OS| |All
--- Comment #1 from Rainer Jung <ra...@kippdata.de> ---
Bugzilla is not a support forum. Please post your question on the Tomcat users
list: http://tomcat.apache.org/lists.html.
A look at http://tomcat.apache.org/tomcat-7.0-doc/config/http.html might help
you, especially check the "scheme" and "secure" attributes. You might also be
interested in "proxyName" and "proxyPort".
Please direct further questions to the users list.
--
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