Apache TomcatGeneral discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Apache Tomcat section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
that works fine. Except that the URL is redirected (R flag) which I don't wan't.
If I use
RewriteRule "^/file(.*)$" "/dir/servlet/file$1" [L]
alone it works fine but if I use it with the HTTPS redirect then the URL rewriting is visible to the user
I have tried to change my rewriting rules to
RewriteCond "%{SERVER_PORT}" "^80$"
RewriteRule "^(.*)$" "https://%{SERVER_NAME}$1" [R,L]
RewriteRule "^/file(.*)$" "/dir/servlet/file$1" [PT,L]
but no matter wich way I turn it mod_jk doesn't take it. (Apache return a 403 error on the file name). I have to use the R flag to make it work.