Hi Katy, On 24.04.2013 16:38, Beavers, Melinda K (Kay) wrote: > Rainer, thank you for that link!! I have put this line in my > isapi_redirect.properties file: > "rewrite_rule_file=C:\Avaya\TomcatFilter\rewrite.properties" and put my > rewrite.properties file in place with just a single line in it: > "/apps/cepv/website/=/website/" and reset IIS. It is not working but in the > debug log I never see any reference to using the rewrite file. > > I never see entries like described below: > > "During startup, you should see > > Using rewrite rule file YOURRULESFILE > > in the log file, and later > > Loaded rewrite rule file YOURRULESFILE > > Between those two, you should also see lines indicating, that the > contents of the file got parsed." > > Do you know if there's some other step I'm missing or if it has to be a > certain version in order to recognize the rewrite file?
First: which version are you using? Then: I assume we already know that your entries to isapi_redirect.properties work in principle, i.e. that you can confirm that some of the entries did work, just not the rewrite_rule_file entry. Correct? Next I assume you could correctly set a log file using the log_file entry and that you can now set the log level to "debug" using log_level=debug. When you now start up, you should get a couple of log lines containing the word "Using". Post at least them or even better all startup log messages, excluding any confidential stuff. Regards, Rainer > -----Original Message----- > From: Rainer Jung [mailto:rainer.j...@kippdata.de] > Sent: Wednesday, April 24, 2013 2:03 AM > To: users@tomcat.apache.org > Subject: Re: Configuring IIS to use the JK ISAPI redirector plugin when URL > paths are different > > On 24.04.2013 06:53, Beavers, Melinda K (Kay) wrote: >> We have installed the IIS-Tomcat redirector (isapi_redirect.dll) on an IIS 6 >> server so that http://iis.company.com/website/myfile.jsp will correctly >> redirect according to our 'isapi_redirect.properties', 'workers.properties', >> and 'uriworkermap.properties ' and serve the JSP page from >> http://tomcat.company.com/website/myfile.jsp . That appears to be working >> just fine. But we actually need to have a different IIS URL. What we are >> trying to figure out is if we can configure it so that >> http://iis.company.com/apps/cepv/website/myfile.jsp will redirect and serve >> the JSP content at http://tomcat.company.com/website/myfile.jsp. The path on >> the IIS server is has two extra levels (/apps/cepv) in the URL path and does >> not match the path on the tomcat server where the JSP content is. We have to >> have those two extra levels in the IIS URL path for other technical reasons >> and we cannot match or include those two extra levels on the tomcat side. >> >> We have tried the following but cannot get it to work. >> >> website.worker=website_ajp13 >> /apps/cepv/website/*.jsp=$(website.worker) >> >> Is there anything we can do to map this correctly? > > Have a look at > > https://tomcat.apache.org/connectors-doc/generic_howto/proxy.html#URL%20Rewriting > > starting from "If you are using Microsoft IIS as a web server...". > > Regards, > > Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org