You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Patrick Markiewicz <pm...@sim-gtech.com> on 2009/06/03 18:55:23 UTC

IIS Connector Redirect to Localhost?

Hi,

            I configured the isapi_redirect file for tomcat using the
instructions I found online.  The only twist I added, was instead of
defining the ISAPI filter for the entire website, I used a wildcard map
and instructed IIS 6.0 to use isapi_redirect.dll as the high priority
wildcard map for an empty directory called C:\myapp.  In my worker map,
I defined /myapp to go to the ajp13 connector.

            If I visit the page in plain http, it seems to work fine all
the time.  I.e. http://www.example.com/myapp brings up the page. When I
visit the page in https, ajp13 tries to redirect the client to
localhost:8009 (which of course is not valid).  But when I reload the
page, it goes to the https://www.example.com/myapp.  How can I avoid the
redirect to localhost?  I suspect I just need to put www.example.com
<http://www.example.com/>  somewhere in server.xml, but there were 3
places with localhost specified, and I wasn't sure which one I should
replace.

 

Thanks.

 

Patrick