Index: openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl,v diff -u -r1.133.2.2 -r1.133.2.3 --- openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 29 Aug 2013 15:59:51 -0000 1.133.2.2 +++ openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 3 Sep 2013 08:07:24 -0000 1.133.2.3 @@ -2518,8 +2518,9 @@ } } - if { [ns_config "ns/parameters" ReverseProxyMode] == "true" } { - if { [ns_set iget [ad_conn headers] X-Forwarded-For] != "" && [ns_set iget [ad_conn headers] X-SSL-Request] == "1"} { + if { [ns_config "ns/parameters" ReverseProxyMode false] } { + if { [ns_set ifind [ad_conn headers] X-Forwarded-For] > -1 + && [ns_set iget [ad_conn headers] X-SSL-Request] == "1"} { set proto https } }