Using mod_rewrite to hide tomcat port
- by user123181
I have apps on Tomcat that use URLs like this: http://xxx:8080/myapp
I don't want the users to see the port in the URL.
Hi can do a rewrite rule like this:
RewriteRule ^/myapp(.*) http://xxx:8080/myapp$1 [P,L]
This way, if a user goes to the URL http://xxx/myapp he can enter the app fine, but the port will still show up on the browser. I want the URL that the user sees to be always http://xxx/myapp
How can I do this using mod_rewrite?