This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 39576
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.

Ping & DNS - updated with new look and Ping home screen widget
I agree. Here's the link:
subject: Apache / Tomcat / SSL / mod_rewrite
Similar Threads
apache url rewriting problem
Redirect in Apache
Loadbalancing: Apache -> mod_rewrite; session lost
Apache loadbalancing, mod_rewrite, mod_proxy
Securing only login page