Hi,
I've been trying to do this for some time unsuccesfully. I'll say in advance that this is probably a newbie question so apologies but I do need some assistance with this.
I am trying to redirect requests to cgi-bin/java-rmi.cgi to a servlet on tomcat (from apache). I've managed to redirect to the servlet successfully but I have not been able to do an implicit redirections (hiding the url change from the client).
This is mandetory since rmi will not work if it is redirected so I have to hide this from the client.
Right now my httpd.conf looks like this (only the relevant stuff obviously)
RewriteEngine on
RewriteLog logs/rewrite.log
RewriteLogLevel 9
RewriteRule ^/cgi-bin/java\-rmi\.cgi http://localhost/RMIServlet [P]
Alias /RMIServlet "C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/RMIServlet"
<Directory "C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/RMIServlet/">
Options Indexes FollowSymLinks
</Directory>
include "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/mod_jk.conf"
additionally, my mod_jk.conf looks like this (again, only relevant stuff)
# Send everything!! to worker ajp13
JkMount / ajp13
JkMount /* ajp13
(although I presume mod_jk.conf has nothing to do with the problem)
I also enabled these:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module mo
dules/mod_rewrite.so
Whenever I try to open http://localhost/cgi-bin/java-rmi.cgi the page opens with the url http://localhost/RMIServlet which is not good.
What am I doing wrong?
Thanks!