It's not a secret anymore!
The moose likes Security and the fly likes Apache / Tomcat / SSL / mod_rewrite Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Apache / Tomcat / SSL / mod_rewrite " Watch "Apache / Tomcat / SSL / mod_rewrite " New topic

Apache / Tomcat / SSL / mod_rewrite


Joined: Jan 17, 2007
Posts: 1
Can anyone tell me if this rewite from apache to tomact would still count as secure?

RewriteCond %{THE_REQUEST} "^(GET|POST) https://.*"
RewriteRule ^/(.*) https://localhost:80/ [F,L]

RewriteCond %{REQUEST_URI} "!^/sub_domain_name/.*"
RewriteRule ^/(.*) http://localhost:8080/sub_domain_name/$1 [P]
RewriteCond %{REQUEST_URI} ^/sub_domain_name/.*
RewriteRule ^/(.*) http://localhost:8080/$1 [P]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Hello "Tomoto"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.
I agree. Here's the link:
subject: Apache / Tomcat / SSL / mod_rewrite
It's not a secret anymore!