I'm taking Christopher's advice to remove httpd and mod_jk out of my process and go straight to Tomcat on port 80.  At this point the only thing I've done is stop the httpd service and change the Connector port to 80.  I'm running on my local machine.  I have a hosts entry set to "local.aaaaa.com 127.0.0.1", and I use the url http://local.aaaaa.com to access the site.   When I use the old setup with httpd/mod_jk, a call to request.getLocalHost() returns "local.aaaaa.com" as expected.  After doing nothing but changing to go straight to TC on port 80, getLocalHost() returns 127.0.0.1.    request.getRequestURL() still gives me the http://local.aaaaa.com.  Theoretically, I could change my code to parse getRequestURL() instead of getLocalHost() to get the real host name.  But I don't really want to do that without understanding why I'm seeing the change.  Is there something else I need to add to the config file when moving to direct port 80 off of mod_jk?  Ideas? BTW... I'm on TC 9.0.16.

Thanks.

Jerry


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to