Forum Discussion
andyr0ck_5031
Nimbostratus
17 years agoSelective SSL rewrite by hostname
Hi,
I'm running a Blackboard e-learning system with SSL offload using a simple rewrite rule to only encrypt text/html (due to problems with binary formats) and I need to also exclude an...
andyr0ck_5031
Nimbostratus
17 years agothis is the rule i came up with (my TCL is awful!) but i get syntax errors:
when HTTP_RESPONSE {
HTTP::header remove "Pragma"
if { [HTTP::header Content-Type] contains "text/html;charset=UTF-8" and [IP::addr [IP::remote_addr] not_equals 208.57.158.0/255.255.255.0 ] } {
STREAM::expression "@http://system.college.ac.uk@https://system.college.ac.uk@"
}
}
can anybody help with this? have i got the logic completely wrong?