• View Communities
    • Citrix Developer Network
      The place for unfiltered straight talk on Citrix products. Blogs, code downloads, best practices, APIs, and more can all be found here.
    • Citrix Ready Community Verified
      Does it work with Citrix? Application compatibility questions are a thing of the past with the new Citrix Community Verified site.
    • Blogs
      Learn the latest from the Citrix employees who are building application delivery infrastructure technologies.
    • Blogosphere
      The Citrix Blogosphere is a window into the thousands of conversations taking place about Citrix and Application Delivery.
  •  Sign In
The Citrix Blog
Personal Blog
Craig Ellrod
Related Tags
posted by Craig Ellrod

Secure Selected Pages


The Citrix NetScaler can be placed in front of a webserver farm that is running Apache. The same re-write rules that run on Apache, can be implemented on the Citrix NetScaler.

In situations where you want to make sure that for some selected pages only the secure server is used, the following can be used.
Apache rewrite:

RewriteCond %{SERVER_PORT} !^443$ 
RewriteRule ^/?(page1|page2|page3|page4|page5)$  https://www.example.com/%1 [R,L]


AppExpert rewrite example 1:

Add responder action res_redirect redirect  '"https://www.example.com"+HTTP.REQ.URL' -bypassSafetyCheck yes
Add responder policy pol_redirect '!CLIENT.TCP.DSTPORT.EQ(443)&&HTTP.REQ.URL.REGEX_MATCH(re/page[1-5]/)'  res_redirect
Bind responder global pol_redirect 100 END


AppExpert rewrite example 2:

Add patset pat1
Bind patset pat1 page1
Bind patset pat1 page2
Bind patset pat1 page3
Bind patset pat1 page4
Bind patset pat1 page5
Add responder action res_redirect redirect  '"https://www.example.com"+HTTP.REQ.URL' -bypassSafetyCheck yes
Add responder policy pol_redirect '!CLIENT.TCP.DSTPORT.EQ(443)&&HTTP.REQ.URL.CONTAINS_ANY("pat1")'  res_redirect
Bind responder global pol_redirect 100 END


Tap into the power of AppExpert!

Labels

appexpert appexpert Delete
secure page secure_page Delete
secure redirect secure_redirect Delete
responder responder Delete
redirect redirect Delete
rewrite rewrite Delete
url rewrite url_rewrite Delete
content switch content_switch Delete
apptips apptips Delete
tips tips Delete
howto howto Delete
netscaler netscaler Delete
apache apache Delete
mod rewrite mod_rewrite Delete
web server web_server Delete
load balancing load_balancing Delete
load balancer load_balancer Delete
number 1 load balancer number_1_load_balancer Delete
application delivery application_delivery Delete
application acceleration application_acceleration Delete
performance performance Delete
application virtualization application_virtualization Delete
application scalability application_scalability Delete
ssl offload ssl_offload Delete
tcp multiplexing tcp_multiplexing Delete
caching caching Delete
compression compression Delete
site balancer site_balancer Delete
ssl balancer ssl_balancer Delete
website load balancer website_load_balancer Delete
application delivery controller application_delivery_controller Delete
netscaler netscaler Delete
lang-eng lang-eng Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.