Bug 34675 - Wrong doc content for Proxy Support
Summary: Wrong doc content for Proxy Support
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Webapps:Documentation (show other bugs)
Version: 5.0.18
Hardware: All other
: P2 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-29 11:43 UTC by Tomasz Bech
Modified: 2005-05-03 08:29 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Bech 2005-04-29 11:43:06 UTC
From the doc:
Using standard configurations of Tomcat, web applications can ask for the server
name and port number to which the request was directed for processing. When
Tomcat is running standalone with the Coyote HTTP/1.1 Connector, it will
generally report the server name specified in the request, and the port number
on which the Connector is listening. The two servlet API calls of interest, for
this purpose, are:

    * ServletRequest.getServerName()
    * ServletRequest.getServerPort()



"and the port number on which the Connector is listening" - NOT TRUE.
When proxyPort is not specified, getServerPort() gives the port number which is
on the client side request - not the real one on which the Connector is listening.
Please correct doc.
Comment 1 Yoav Shapira 2005-05-03 16:29:58 UTC
I've updated and clarified the documentation per your request.  Thank you for
pointing this out.  In the future, when asking for documentation enhancements,
please provide the new text you'd like to see.