Hiding the port number in browser URL
I need your suggestion on hiding port number on redirected URL from browser... I have created a apache-tomcat bridge using following steps:
1) Deploying another application in separate context than ROOT under tomcat.
2) My default virtual hosts of apache listening on a dedicated port..say 80.
3) I wasn't allowed to use ProxyPass/ReverseProxy for some security constraint. So I have created another virtual-host listening on separate port with my own document root.(may be tomcat's deployment path for my app)... & used mod_jk to redirect the request to tomcat.
4) I have used RewriteRule to redirect the request generally for 80 port to my own virtual-host. with using [L,R] flags.
Now the redirected URL with the port number is getting visible in browser as it is explicit redirect... How can I hide/encrypt this port number to get displayed in browser?.... Don't ask to use [P] flag...it is nothing but the same of proxypass/reverseproxy....
|