All,

I've been a long time Cherokee fan -- many thanks to the developers
who spend so many hours improving such an awesome product. I have a
rather simple question and am hoping someone can help me out.

I'm trying to force traffic to use HTTPS instead of HTTP. To do so I'm
following the following recipe:

http://www.cherokee-project.com/doc/cookbook_http_to_https.html

As an example, I have http://webtools.example.com ->
https://webtools.example.com.

So I set up a new rule that looks as follows:

vserver!2!rule!140!disabled = 0
vserver!2!rule!140!handler = redir
vserver!2!rule!140!handler!rewrite!1!regex = /(.*)$
vserver!2!rule!140!handler!rewrite!1!show = 1
vserver!2!rule!140!handler!rewrite!1!substring = https://${host}/$1
vserver!2!rule!140!match = directory
vserver!2!rule!140!match!directory = /
vserver!2!rule!140!match!final = 1
vserver!2!rule!140!match!fullpath!1 = /
vserver!2!rule!140!only_secure = 0

As far as I can tell this is the correct way to do this. The problem,
however, is the '/' directory match. When I set the root directory to
something like /tools, then going to http://webtools.example.com/tools
will forward to HTTPS. However, I want *all*
http://webtools.example.com/ traffic to be forwarded to HTTPS.

When I leave my root directory as '/', the connection fails. Firefox
throws an error (we presumably have a loop here).

-->8--

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for
this address in a way that will never complete.

*   This problem can sometimes be caused by disabling or refusing to
accept cookies.

--8<--

I'm out of ideas. I know I had this working in the past but can't seem
to simulate the behavior. Any thoughts / ideas / help would be greatly
appreciated!

Thanks!
-james
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to