Docstoc

Web Interface on nCore NetScaler FS

Document Sample
Web Interface on nCore NetScaler FS Powered By Docstoc
					v.1.0                     Deployment guide for Citrix Application Template for Sharepoint 2010




     Deployment Guide for Citrix Application Template for
                     Sharepoint 2010
                                                                     Version 1.0




1       INTRODUCTION ................................................................................................................................ 2

2       SOLUTION REQUIREMENTS ......................................................................................................... 2

3       PREREQUISITES ................................................................................................................................ 2

4       NETWORK TOPOLOGY ................................................................................................................... 3

5       APPLICATION TEMPLATES ........................................................................................................... 4
    5.1       INTRODUCTION ................................................................................................................................ 4
6       CREATING A CUSTOM TEMPLATE FOR SP 2010 ..................................................................... 5
    6.1       CREATING YOUR OWN APP UNITS .................................................................................................... 5
    6.2       ENABLE COMPRESSION ................................................................................................................... 6
    6.3       ENABLE CACHING ........................................................................................................................... 7
    6.4       ORDERING OF APPLICATION UNITS .................................................................................................. 7
    6.5       SHAREPOINT PUBLIC ENDPOINT CONFIGURATION ............................................................................ 8
    6.6       SHAREPOINT LOAD BALANCING CONFIGURATION ............................................................................ 9
7       IMPORTING A PRECANNED SHAREPOINT 2010 TEMPLATE .............................................10
    7.1     SHAREPOINT APPLICATION TEMPLATE CONFIGURATION ................................................................10
    7.2     CHARACTERIZATION OF THE SHAREPOINT APPLICATION ................................................................11
    7.3     DISTRIBUTION OF CACHE AND COMPRESSION POLICIES ACROSS THE APPLICATION UNITS ..............12
    7.4     APP VISUALIZER ............................................................................................................................13
    7.5     PERFORMANCE REPORT OF THE PRECANNED TEMPLATE .................................................................14
    7.6     DEEP DIVE INTO CONFIGURATIONS .................................................................................................14
       7.6.1    Integrated Caching configuration .........................................................................................14
       7.6.2    Compression policies .............................................................................................................15
       7.6.3    PI Expressions and PAT sets .................................................................................................15
8       EXPORTING APPLICATION TEMPLATES.................................................................................16

9       IMPORTING APPLICATION TEMPLATE ...................................................................................18

10         APPENDIX ......................................................................................................................................18
    NETSCALER CONFIGURATION .....................................................................................................................18




                                                                         Page 1                                                                 4/8/2011
v.1.0             Deployment guide for Citrix Application Template for Sharepoint 2010




1 Introduction
This document describes the requirements and work required for support of running Sharepoint 2010
application template on NetScaler.

Citrix® NetScaler® optimizes the delivery of web applications — increasing security and improving
performance and Web server capacity. This approach ensures the best total cost of ownership (TCO),
security, availability, and performance for Web applications. The Citrix NetScaler solution is a
comprehensive network system that combines high-speed load balancing and content switching with state-
of-the-art application acceleration, layer 4-7 traffic management, data compression, dynamic content
caching, SSL acceleration, network optimization, and robust application security into a single, tightly
integrated solution. Deployed in front of application servers, the system significantly reduces processing
overhead on application and database servers, reducing hardware and bandwidth costs.

NetScaler Applications Templates -introduced in NetScaler 9.0 -provide an application-centric view of the
NetScaler system‟s policy configurations. From a single place within the GUI (AppExpert Applications)
NetScaler administrators can: 1) Configure the various application features the NetScaler is fronting, 2)
View which NetScaler functional modules (e.g., compression, caching, application firewall) are optimized
and active for a given application unit.

Additionally, Application Templates allow you to drill down and see which individual NetScaler policies
are active, and what policies are inactive but available, by application component and NetScaler module.
From this same view, individual policies can be created, activated and deactivated.

Application templates can be downloaded, imported, modified and exported. Administrators can download
application templates built by Citrix, Citrix Partners and members of the NetScaler community from the
Citrix Community Website. These templates are easily imported into any NetScaler running NetScaler 9.0
or higher, jump starting the configuration and deployment process. Templates developed in-house can be
easily exported and shared within your organization, or posted back to the Citrix Community Website for
others to view and improve.


2 Solution Requirements
General customer deployments would need:-

    a) Application Frontend switch
    b) Microsoft Sharepoint 2010


3 Prerequisites
•       Citrix NetScaler L4/7 Application Switch, running version 9.0 build 61.9 (Quantity x 2 for HA)
•       Windows Sharepoint Services (WSS)
•       Microsoft Office Sharepoint Server (MOSS)
•       Client laptop/workstation running Internet Explorer 6.0+, Ethernet port
•       9-pin serial cable -or- USB-to-serial cable




                                                  Page 2                                          4/8/2011
v.1.0    Deployment guide for Citrix Application Template for Sharepoint 2010




4 Network topology




                                       Page 3                                   4/8/2011
v.1.0             Deployment guide for Citrix Application Template for Sharepoint 2010



5 Application Templates

5.1     Introduction
Application Templates are a new and simple approach to configuration management for complex enterprise
applications. Applications are listed in the left-most column. In one simple view, you can view what is
most important to you in terms of application delivery directly below in the same column in what are called
Application Units. You simply configure what constitutes the interesting traffic for each application
delivery unit, and turn on the rules for compression, caching, rewrite, filtering, responder and application
firewall. This is largely different from having to go into each feature and define complex rules and
expressions individually, reducing the time to deploy, easing management and improving the bottom line.

What is important to the Application Expert is how the application is characterized by its content. In other
words, what is the content that comprises the back-end application, and what are you most concerned with
regarding it‟s delivery. It is this content that we are most interested in, as we will build Application
Templates surrounding this content.

Identification of workflows refers to the areas of the application
that are important to Application Delivery, such as “Reports”,
“Documents”, “Images”, “Stylesheets”, “Web Services” and
“Portal Pages”. Each of these workflows can be specifically
identified by the type of content they generate from Server to
Client and vice-verse.

The process for entering Application Templates into the
NetScaler Application Switch is simple. From the GUI, navigate
to NetScaler  AppExpert  Applications. Select „Add‟ to add the Application by name. Select „Add‟
again to enter an Application Unit, which refers to the workflow, for example “Report Management”. Enter
the Expression to identify the reports, for example URL == „/*.pdf‟. From this basis, the important
operations can be configured upon all reports that appertain to this application, such as compression,
caching, rewrite, filtering, responder and application firewall.

One final step involves adding the front-end Virtual IP Address (VIP) and back-end servers. Then, by
virtue of this configuration, load balancing is in effect for this application. Load Balancing algorithms and
persistence can be modified from the default values.




                                                    Page 4                                           4/8/2011
v.1.0             Deployment guide for Citrix Application Template for Sharepoint 2010



6 Creating a Custom Template for SP 2010

6.1     Creating your own App units

Configuration of the Sharepoint Application Template involves defining Application Units for Sharepoint
Traffic. An Application Unit defines a subset of traffic that you are interested in applying template policies
to. For example Images or Reports, or specific portions of content. Definition of Application units are
Request based, in that the expressions are built upon Request based rules.

                                                                                                    From the NetScaler         GUI,
                                                                                                    NetScaler
                                                                                                    AppExpert
                                                                                                    Applications.
                                                                                                    Select Add.
                                                                                                    Enter the Application Template Nam
                                                                                                    this example, Sharepoint 2010




                                                                                                    Select Add again, and enter the
                                                                                                    Application Unit. An Application U
                                                                                                    describes the Interesting Traffic o
                                                                                                    type of context.
                                                                                                    In this example, Application Unit is
                                                                                                    Portal_Management, identified by th
                                                                                                    expression:
                                                                                                    rule
                                                                                                    "!HTTP.REQ.URL.CONTAINS(\"/
                                                                                                    uts/\")&&
                                                                                                    HTTP.REQ.URL.SUFFIX.SET_TE
                                                                                                    MODE(IGNORECASE).EQUALS
                                                                                                    (\"aspnet\")"




                                                    Page 5                                           4/8/2011
v.1.0             Deployment guide for Citrix Application Template for Sharepoint 2010



Similarly create other application units




6.2     Enable Compression
After all of the Application units have been added, enable Compression.




                                                                                         Enable Compression

                                                                                         Select ‘Add Policy’
                                                                                              Name: <policy name>
                                                                                              Action: COMPRESS
                                                                                              Expression: ns_true
                                                                                                  (Advanced Free Form)

                                                                                         Select ‘Create’
                                                                                         Make sure that the compression po
                                                                                         is selected
                                                                                         Click ‘OK’




                                                  Page 6                                    4/8/2011
v.1.0            Deployment guide for Citrix Application Template for Sharepoint 2010


6.3     Enable Caching



                                                                                         Enable Caching

                                                                                         Select „Insert Policy‟
                                                                                         Policy Name: NOPOLICYCACHE
                                                                                         Select Invoke: New Policy Label




                                                                                         Cache Policy Label:
                                                                                         „Sharepoint cache label‟

                                                                                         Select Insert Policy:

                                                                                         Select „New Policy‟:
                                                                                              Name:<policy name>
                                                                                              Action: CACHE
                                                                                              Expression: TRUE
                                                                                                  (Advanced Free form)

                                                                                         In this example, the cache policy name
                                                                                         will be „sharepoint_cache_policy‟



                                                                                         Select „Create‟ , Apply Changes‟ ,
                                                                                         Close‟
                                                                                         Note: Now, the
                                                                                         sharepoint_cache_label can be reused
                                                                                         for the other Application Template
                                                                                         units.




6.4     Ordering of Application units

Order of Application Units matters from a top-down methodology. The first Application Unit at the top of
the list takes precedence. The next Application Unit in the list takes next precedence, and so forth. The
Default Application Unit appears last for all traffic that was not expressed in an Application unit. The
Application units can be reordered by moving them up and down in the GUI interface.




                                                  Page 7                                          4/8/2011
v.1.0             Deployment guide for Citrix Application Template for Sharepoint 2010




Use the Move Up & Move Down buttons to re-order Application Units.
Move them to the top of the list for hligher precedence, or to the bottom of the list for lower precedence.



6.5     Sharepoint public endpoint configuration

The Front-End configuration, or public endpoints configuration, is the public facing IP address(es) that the
user will use to access the application.
Select configure public endpoints

Select Add
Add the ip address and the port that the public users will access the applications with.
•        Name: <endpoint name>
•        Public IP Address: x.x.x.x
•        Protocol: HTTP/SSL
•        Port: 80/443




                                                    Page 8                                             4/8/2011
v.1.0             Deployment guide for Citrix Application Template for Sharepoint 2010




In case of the public endpoint being SSL, make sure that you have added the proper server certificate to the
public endpoint




6.6     Sharepoint load balancing configuration
Configuring backend services is the place where we add the backend servers to send traffic to. When the
Application Template was created, a Load Balancing virtual server (vserver) was also created transparently.
It is during the configuration of the backend services that we can change the default load balancing settings
You can go the method and persistence tab of service and create whatever persistence method and load
balancing algorithm you want for the sharepoint service. We recommend least connection and cookieinsert
for load balancing and persistence respectively for most deployments. However this decision is subject to
the kind of sharepoint deployment.




                                                   Page 9                                           4/8/2011
v.1.0             Deployment guide for Citrix Application Template for Sharepoint 2010




7 Importing a precanned Sharepoint 2010 Template

7.1     Sharepoint Application Template configuration
Sharepoint is an enterprise information portal from Microsoft that can be configured to run Intranet,
Extranet and Internet sites. There are two underlying software technologies, Microsoft Windows
Sharepoint Services (WSS) and Microsoft Office Sharepoint Server (MOSS). Sharepoint services (WSS) is
typically used by small teams, projects and companies, while Sharepoint Server (MOSS) is designed for
individuals, teams and projects within a medium to large enterprise. MOSS is a collaborative portal that is
built on top of WSS. MOSS requires a license.

The Sharepoint application server is characterized by shared folders and files, collaboration, document
workspace, meetings, discussion boards, integrated workflows, RSS Feeds, blogs, wikis, FrontPage
integration and ASP web pages. The goal of Sharepoint is to provide a simple, familiar and consistent user
experience tightly integrated with applications that run through a web browser.

What this means to an Application Expert is you will see a myriad of content being passed through the
Citrix NetScaler Application Switch.

After installation the first page that comes up on the Sharepoint server is /localhost/default.aspx. If you
view some examples of Sharepoint sites for collaboration, you can see that just about every document type
and content type will be uploaded and downloaded from the site. If you view some example of Sharepoint
Internet Web sites, you will see them full of images, scripts and .aspx pages.

The benefits of Sharepoint abound and are best left for marketing material. What is important to the
Application Expert is how the Sharepoint application is characterized by its content. In other words, the
content that comprises the back-end application. It is this content that we are most interested in, as we will
build Application Templates surrounding this content.

We know from experience that Sharepoint workflows are characterized by collaboration, portals, enterprise
content management, and business intelligence, to name a few. We can peel back the layers of these
workflows to identify the actual data that is transferred between Client and Server when this Application is
in use. Under the hood, the workflows are characterized accordingly to the following table.




                                                   Page 10                                            4/8/2011
v.1.0               Deployment guide for Citrix Application Template for Sharepoint 2010


7.2     Characterization of the sharepoint application
      We know from experience that Sharepoint workflows are characterized by collaboration, portals,
      enterprise content management, and business intelligence, to name a few. We can peel back the layers
      of these workflows to identify the actual data that is transferred between Client and Server when this
      Application is in use. Under the hood, the workflows are characterized accordingly to the following
      table.


Workflow                               Characterized by                      Components
Document Management                    Document Sharing and Storage,         .doc, .docx, .ppt, .pptx, .dot,
                                       MS Office Documents, Reports,         .dotx, .docm, .rtf, .txt, .wps, .ppt,
                                       Spreadsheets, Forms                   .pptx, .pot, .potx, .pptm, .potm,
                                                                             .thmx, .ppsx, .ppsm, .pps, .ppam,
                                                                             .pdf, .csv, .txt, .pm, .xsn, .xls,
                                                                             .xlsx, .xlt, .xltx, .xlsb, .xlsm,
                                                                             .xltm, .dif, .slk, .xlam, .xla
Styles and Scripts                     Stylesheets, Javascript               .css, .js
Image Management                       Images                                .gif, .jpg, .jpeg, .tiff, .tif, .bmp,
                                                                             .wmf, .emf, .png
Portal Management                      ASP.NET, Webpages                     .asp, .aspx, .htm, .html, .mht,
                                                                             .mhtml, .xtml, .xml, .jsp, .jspx,
Web Services Definition                WSDLs, WSILs                          ?wsdl, .wsdl, ?wsil, .wsil, .xml
Web Services Schema                    XSDs                                  .xsd

      If we examine the workflows in sharepoint, we know that some of the content is compressible, while
      some is not. Some of this content is cacheable while some is not. And so we form the basis of our
      application template. In summary, we want to configure application template for the following
      features. A check indicates we want to enable the feature. The Default appears last and is a catch all for
      traffic that has not been characterized by our application units.

Shareppoint       Compression      Caching         Rewrite         Filter          Responder         AppFW
Document
                                  
Styles and
Scripts                           
Images
                                   
Portal pages
Web
services          
Web
services
schemas
                                  
Default
                                  



                                                    Page 11                                              4/8/2011
v.1.0                Deployment guide for Citrix Application Template for Sharepoint 2010


7.3     Distribution of cache and compression policies across the application
        units

Application Units          Compression Policies        Cache Policies                   Description
FrontPage Services         compress                    cache_sharepoint_fp_dld_docs     Apply compress
                                                                                        action to all
                                                                                        content and cache
                                                                                        all frontpage
                                                                                        downloaded
                                                                                        documents
SOAP Services              compress                    -
Portal Management          compress                    ByteRangeRequestsNoCache,        Apply compress
                                                       cache_sharepoint_fp_dld_docs     action to all
                                                                                        content and cache
                                                                                        all frontpage
                                                                                        downloaded
                                                                                        documents but
                                                                                        don‟t compress
                                                                                        http byte range
                                                                                        requests
Document                   cmpnotgz                    ByteRangeRequestsNoCache,        Apply compress
Management                                             cache_sharepoint_fp_dld_docs,    action to all
                                                       cache_sharepoint_documents       content and cache
                                                                                        all frontpage
                                                                                        downloaded
                                                                                        documents but
                                                                                        don‟t cache http
                                                                                        byte range
                                                                                        requests.
                                                                                        Invalidate the
                                                                                        cache objects
                                                                                        whenever user
                                                                                        tries to edit the
                                                                                        document
Editable Image             cmp-image                   ByteRangeRequestsNoCache,        Apply compress
Management                                             cache_sharepoint_fp_dld_docs,    action to all
                                                       cache_sharepoint_images          content and cache
                                                                                        all images but
                                                                                        don‟t cache http
                                                                                        byte range
                                                                                        requests.
                                                                                        Invalidate the
                                                                                        cache objects
                                                                                        whenever user
                                                                                        tries to edit or
                                                                                        upload the image
Read Only Image            cmp-image                   ByteRangeRequestsNoCache,        Apply compress
Management                                             cache_sharepoint_images          action to all
                                                                                        content and cache
                                                                                        all images but
                                                                                        don‟t cache http
                                                                                        byte range
                                                                                        requests.
Styles and Scripts         compress                    ByteRangeRequestsNoCache,        Apply compress
                                                       cache_sharepoint_scripts         action to all


                                                   Page 12                                       4/8/2011
v.1.0              Deployment guide for Citrix Application Template for Sharepoint 2010


                                                                                        content and cache
                                                                                        all javascipts and
                                                                                        stylesheets but
                                                                                        don‟t cache http
                                                                                        byte range
                                                                                        requests.
Web Services             compress                     -
Definition
Web Services             compress                     -
Schema
default                  -                            -

      The policy names mentioned here is preceded by an application name. eg compress will show as
      Sharepoint2010_compress if your application name is Sharepoint2010


7.4     App Visualizer
When an Application Template is complete, all of the policies that are configured can be viewed in the
Application Visualizer. For example the table in section above can be viewed easily using the app
visualizer. The Visualizer provides an end-to-end view of the Application Flow from the Client to the
Server.




                                                 Page 13                                          4/8/2011
v.1.0             Deployment guide for Citrix Application Template for Sharepoint 2010


7.5     Performance report of the precanned template
Following the summary of the performance tests run for Sharepoint 2010 using the precanned application
template. You can find the details of the performance report on the citrix community website.
1st access is when both the browser cache and the netscaler cache are empty.
2nd access is when both the browser and the netscaler cache are full
And BC cleared is when the netscaler cache is full but the client browser cache is empty.
As can be seen the application template provides a huge improvement over direct access when the same
content is accessed repeatedly.




7.6     Deep dive into configurations

7.6.1 Integrated Caching configuration

Integrated Cache configuration consist of the following parts


                                                  Page 14                                      4/8/2011
v.1.0              Deployment guide for Citrix Application Template for Sharepoint 2010


    a) Cache policies
Cache policies specify under what conditions should Netscaler make a decision to cache or not cache a
content. Number of Cache policies can be bunched together to create a policy label and specify the order of
evaluation for the cache policies.

add cache policy cache_sharepoint_scripts -rule "HTTP.REQ.METHOD.EQ(GET)" -action CACHE -storeInGroup
SHAREPOINT_SCRIPTS

    b) Cache content group
Cache content group is used to refer one type of cached objects. You need to specify the hit and/or inval
selector along with it as well

add cache contentGroup SHAREPOINT_SCRIPTS -quickAbortSize 4194303 -maxResSize 4000 -memLimit
4095 -minHits 0 -hitSelector SharePointCommon -invalSelector SharePointCommon


     c) Hit or inval selector
Hit or Inval selector is a set of attributes which is used to hash the cached object. When the request
attributes mentioned in the cache selector and the cached objects attributes matches then the object is
served from cache. Likewise when the request attributes mentioned in the inval selector and the cached
object attributes matches then the object in the cache is invalidated and fresh copy of the object is served
from the server.
add cache selector sharepoint_query_SourceUrl
"HTTP.REQ.URL.QUERY.VALUE(\"SourceUrl\").TO_UPPER.TYPECAST_HTTP_URL_T.PATH.SUBSTR(1,255)"



7.6.2 Compression policies

Most of the text extensions are compressible, so are many of the image extensions. Based of the application
units selected we can have a compression policies bound to them

add cmp policy SharePoint-cmp-image -rule "URL == \'/*.bmp\' || URL == \'/*.dib\'" -resAction COMPRESS



7.6.3 PI Expressions and PAT sets
Unlike Netscaler Policy Engine Expressions, Policy Infrastructure Expressions offer the flexibility of
pattern sets (AKA patsets) which makes writing the expressions much simpler and flexible.
Eg
Create a patset for image extension




bind policy patset imageExtensions gif



                                                      Page 15                                            4/8/2011
v.1.0             Deployment guide for Citrix Application Template for Sharepoint 2010


bind policy patset imageExtensions jpg
bind policy patset imageExtensions jpeg
bind policy patset imageExtensions tiff
bind policy patset imageExtensions tif

now use this patset in the PI expression




add cs policy app_cs5 -rule "!HTTP.REQ.URL.CONTAINS(\"/_layouts/\")&&
HTTP.REQ.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"imageExtensions\")"



8 Exporting Application Templates
Application Templates can be exported so that they can be shared, uploaded to the Citrix Community
Website, modified by others, and imported into other NetScaler switches to simplify and ease deployment.
To export the template highlight the application template name and click on export




                                                Page 16                                          4/8/2011
v.1.0   Deployment guide for Citrix Application Template for Sharepoint 2010




                                      Page 17                                  4/8/2011
v.1.0            Deployment guide for Citrix Application Template for Sharepoint 2010



9 Importing Application Template
High Application Templates can be imported into the Citrix NetScaler Application Switch. Templates can
be downloaded from the Citrix Community Website or from local or network storage.



                                                                                          Select the template to import.
                                                                                          Templates are stored in
                                                                                          <name>.gz file format.

                                                                                          To Import the Application
                                                                                          Template, click on
                                                                                          Application, select Import.

                                                                                          When importing a template,
                                                                                          you will need to Add or Select
                                                                                          the Public Endpoints and
                                                                                          Backend Service Groups.




10 Appendix

Netscaler configuration

#NS9.2 Build 46.9
# Last modified by `save config`, Mon Jul 12 21:48:38 2010
# Last modified by `save config`, Tue Oct 6 01:19:11 2009
set ns config -IPAddress 10.217.22.40 -netmask 255.255.255.224
enable ns feature WL SP LB CS CMP AAA SSL CF IC REWRITE AppFw RESPONDER
enable ns mode FR L3 Edge USNIP PMTUD
set lacp -sysPriority 32768
set system user nsroot 1ef26e45b90f2cff03a5a453111e9ca35333fac195be40212 -encrypted
set interface 1/1 -throughput 0 -bandwidthHigh 0 -bandwidthNormal 0
set interface 1/2 -throughput 0 -bandwidthHigh 0 -bandwidthNormal 0
set interface 1/3 -throughput 0 -bandwidthHigh 0 -bandwidthNormal 0
set interface 1/4 -throughput 0 -bandwidthHigh 0 -bandwidthNormal 0
set interface 1/5 -throughput 0 -bandwidthHigh 0 -bandwidthNormal 0
set interface 1/6 -throughput 0 -bandwidthHigh 0 -bandwidthNormal 0
set interface 1/7 -flowControl RXTX -throughput 0 -bandwidthHigh 0 -bandwidthNormal 0
set interface 1/8 -flowControl RXTX -throughput 0 -bandwidthHigh 0 -bandwidthNormal 0
add ns ip 10.217.22.43 255.255.255.224 -type MIP -vServer DISABLED
add ns ip 10.217.22.41 255.255.255.0 -type MIP -vServer DISABLED
add ns ip 192.168.1.7 255.255.255.0 -vServer DISABLED
set snmp alarm HA-VERSION-MISMATCH -time 86400
set snmp alarm HA-SYNC-FAILURE -time 86400
set snmp alarm HA-NO-HEARTBEATS -time 86400



                                                Page 18                                        4/8/2011
v.1.0            Deployment guide for Citrix Application Template for Sharepoint 2010


set snmp alarm HA-BAD-SECONDARY-STATE -time 86400
add policy patset ByteRangeHeaders
add policy patset aspnet
add policy patset vtibin
add policy patset htmls
add policy patset cssjs
add policy patset DocExtensions
add policy patset imageExtensions
bind policy patset ByteRangeHeaders Range
bind policy patset ByteRangeHeaders If-Range
bind policy patset ByteRangeHeaders Unless-Modified-Since
bind policy patset aspnet .ASPX
bind policy patset aspnet .ASP
bind policy patset aspnet .asp
bind policy patset aspnet .aspx
bind policy patset vtibin "/bin/"
bind policy patset vtibin "/_app_bin/"
bind policy patset vtibin "/_vti_bin/"
bind policy patset htmls mht
bind policy patset htmls mhtml
bind policy patset htmls xhtml
bind policy patset htmls xml
bind policy patset cssjs js
bind policy patset cssjs css
bind policy patset DocExtensions gz
bind policy patset DocExtensions pdf
bind policy patset DocExtensions csv
bind policy patset DocExtensions prn
bind policy patset DocExtensions xsn
bind policy patset DocExtensions xls
bind policy patset DocExtensions xlsx
bind policy patset DocExtensions xlt
bind policy patset DocExtensions xltx
bind policy patset DocExtensions xlsb
bind policy patset DocExtensions xlsm
bind policy patset DocExtensions xltm
bind policy patset DocExtensions dif
bind policy patset DocExtensions slk
bind policy patset DocExtensions xlam
bind policy patset DocExtensions xla
bind policy patset DocExtensions doc
bind policy patset DocExtensions docx
bind policy patset DocExtensions ppt
bind policy patset DocExtensions pptx
bind policy patset DocExtensions dot
bind policy patset DocExtensions dotx
bind policy patset DocExtensions docm
bind policy patset DocExtensions dotm
bind policy patset DocExtensions rtf
bind policy patset DocExtensions txt
bind policy patset DocExtensions wps
bind policy patset DocExtensions pot
bind policy patset DocExtensions potx
bind policy patset DocExtensions pptm
bind policy patset DocExtensions potm
bind policy patset DocExtensions thmx
bind policy patset DocExtensions ppsx
bind policy patset DocExtensions ppsm
bind policy patset DocExtensions pps
bind policy patset DocExtensions ppam
bind policy patset DocExtensions mpp
bind policy patset DocExtensions mppx



                                               Page 19                                  4/8/2011
v.1.0             Deployment guide for Citrix Application Template for Sharepoint 2010


bind policy patset DocExtensions exe
bind policy patset imageExtensions gif
bind policy patset imageExtensions jpg
bind policy patset imageExtensions jpeg
bind policy patset imageExtensions tiff
bind policy patset imageExtensions tif
bind policy patset imageExtensions png
bind policy patset imageExtensions bmp
bind policy patset imageExtensions emf
bind policy patset imageExtensions wmf
bind policy patset imageExtensions wbmp
bind policy patset imageExtensions ico
bind policy patset imageExtensions dib
add policy expression app_0_ApplicationsSharePoint ns_true
add policy expression app_u_SharePointFrontPage_Services ns_true
add policy expression app_u_SharePointSOAP_Services ns_true
add policy expression app_u_SharePointPortal_Management ns_true
add policy expression app_u_SharePointDocument_Management ns_true
add policy expression app_u_SharePointEditable_Image_Management ns_true
add policy expression app_u_SharePointReadOnly_Image_Management ns_true
add policy expression app_u_SharePointStyles_and_Scripts ns_true
add policy expression app_u_SharePointWeb_Service_Definitions ns_true
add policy expression app_u_SharePointWeb_Service_Schemas ns_true
add policy expression app_o_SharePointdefault ns_true
set locationParameter -context geographic -q1label Continent -q2label Country -q3label Region -q4label City
-q5label ISP -q6label Organization
add server 192.168.1.2 192.168.1.2
add server mycitrite mycitrite.citrite.net
add cs policy app_cs0 -rule "HTTP.REQ.HEADER(\"X-Vermeer-Content-Type\").EXISTS"
add cs policy app_cs1 -rule "HTTP.REQ.METHOD.EQ(POST) &&
HTTP.REQ.HEADER(\"soapaction\").EXISTS"
add cs policy app_cs2 -rule "HTTP.REQ.URL.CONTAINS_ANY(\"aspnet\")"
add cs policy app_cs3 -rule
"Q.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"DocExtensions\")||
(Q.URL.SUFFIX.EQ(\"dll\") && !Q.URL.CONTAINS_ANY(\"vtibin\")) || (Q.URL.SUFFIX.EQ(\"axd\") &&
!Q.URL.CONTAINS(\" /WebResource.axd\")) || (!Q.URL.CONTAINS( \"/_layouts/\") &&
HTTP.REQ.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"cssjs\")) || (
Q.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"htmls\") && !Q.URL.CONTAINS(
\"/_layouts/blank.htm\"))"
add cs policy app_cs5 -rule "!HTTP.REQ.URL.CONTAINS(\"/_layouts/\")&&
HTTP.REQ.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"imageExtensions\")"
add cs policy app_cs4 -rule "HTTP.REQ.URL.CONTAINS(\"/_layouts/\")&&
HTTP.REQ.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"imageExtensions\")"
add cs policy app_cs6 -rule "Q.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS(\"WebResource.axd\")
|| (Q.URL.CONTAINS(\"/_layouts\") &&
Q.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"cssjs\"))"
add cs policy app_cs7 -rule "SYS.EVAL_CLASSIC_EXPR(\"(URL CONTAINS ?wsdl || URL CONTAINS
.wsdl || URL CONTAINS ?wsil || URL CONTAINS .wsil || URL == \'/*.xml\') || (URL CONTAINS ?WSDL ||
URL CONTAINS .WSDL || URL CONTAINS ?WSIL || URL CONTAINS .WSIL || URL == \'/*.XML\')\")"
add cs policy app_cs8 -rule "SYS.EVAL_CLASSIC_EXPR(\"URL CONTAINS .xsd || URL CONTAINS
.XSD\")"
add service SP-Server 192.168.1.2 HTTP 30062 -gslb NONE -maxClient 0 -maxReq 0 -cip DISABLED -usip
NO -useproxyport YES -sp OFF -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB NO -CMP YES
add service mycitrite mycitrite HTTP 80 -gslb NONE -maxClient 0 -maxReq 0 -cip DISABLED -usip NO -
useproxyport YES -sp OFF -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB NO -CMP YES
add aaa user t_pratapt -password fd2604527edf7371a2 -encrypted
set rewrite param -undefAction NOREWRITE
add cmp policy sharepoint_compress -rule ns_true -resAction COMPRESS
add cmp policy sharepoint_cmpnotgz -rule "(REQ.HTTP.URL != \'/*.GZ\') && (REQ.HTTP.URL != \'/*.gz\')" -
resAction COMPRESS
add cmp policy SharePoint-cmp-image -rule "URL == \'/*.bmp\' || URL == \'/*.dib\'" -resAction COMPRESS




                                                 Page 20                                          4/8/2011
v.1.0           Deployment guide for Citrix Application Template for Sharepoint 2010


add lb vserver app_0_ApplicationsSharePoint HTTP 0.0.0.0 0 -persistenceType COOKIEINSERT -
persistenceBackup SOURCEIP -lbMethod ROUNDROBIN -cltTimeout 180 -downStateFlush DISABLED
add lb vserver app_u_SharePointFrontPage_Services HTTP 0.0.0.0 0 -persistenceType NONE -cltTimeout
180 -downStateFlush DISABLED
add lb vserver app_u_SharePointSOAP_Services HTTP 0.0.0.0 0 -persistenceType NONE -cltTimeout 180 -
downStateFlush DISABLED
add lb vserver app_u_SharePointPortal_Management HTTP 0.0.0.0 0 -persistenceType NONE -lbMethod
ROUNDROBIN -cltTimeout 180 -downStateFlush DISABLED
add lb vserver app_u_SharePointDocument_Management HTTP 0.0.0.0 0 -persistenceType NONE -
cltTimeout 180 -downStateFlush DISABLED
add lb vserver app_u_SharePointEditable_Image_Management HTTP 0.0.0.0 0 -persistenceType NONE -
cltTimeout 180 -downStateFlush DISABLED
add lb vserver app_u_SharePointReadOnly_Image_Management HTTP 0.0.0.0 0 -persistenceType NONE -
cltTimeout 180 -downStateFlush DISABLED
add lb vserver app_u_SharePointStyles_and_Scripts HTTP 0.0.0.0 0 -persistenceType NONE -cltTimeout
180 -downStateFlush DISABLED
add lb vserver app_u_SharePointWeb_Service_Definitions HTTP 0.0.0.0 0 -persistenceType NONE -
lbMethod ROUNDROBIN -cltTimeout 180 -downStateFlush DISABLED
add lb vserver app_u_SharePointWeb_Service_Schemas HTTP 0.0.0.0 0 -persistenceType NONE -
lbMethod ROUNDROBIN -cltTimeout 180 -downStateFlush DISABLED
add lb vserver app_o_SharePointdefault HTTP 0.0.0.0 0 -persistenceType NONE -cltTimeout 180 -
downStateFlush DISABLED
add authentication vserver SP-AAA SSL 192.168.1.11 443 -AuthenticationDomain citrite.net
add cs vserver CS_SP HTTP 192.168.1.15 30062 -cltTimeout 180 -AuthenticationHost aaa.citrite.net -
Authentication ON
add cs vserver mycitrite HTTP 192.168.1.15 80 -cltTimeout 180
set ns rpcNode 10.217.22.40 -password
8a7b474124957776a0cd31b862cbe4d72b5cbd59868a136d4bdeb56cf03b28 -encrypted -srcIP 10.217.22.40
add responder action http_to_https_action12 redirect "\"https://\" + HTTP.REQ.HOSTNAME+
HTTP.REQ.URL" -bypassSafetyCheck YES
add responder action http_to_https_action121 redirect "\"https://\" + HTTP.REQ.HOSTNAME+
HTTP.REQ.URL" -bypassSafetyCheck YES
add responder policy https_redirect_for_sharepointA2
"HTTP.REQ.HEADER(\"Host\").CONTAINS(\"strategic\") && !CLIENT.SSL.IS_SSL" http_to_https_action12
add responder policy https_redirect_for_sharepointA1
"HTTP.REQ.HEADER(\"Host\").CONTAINS(\"strategic\") && !CLIENT.SSL.IS_SSL" http_to_https_action121
add responder policylabel label_redirect_forSharepointAp2
add responder policylabel label_redirect_forSharepointAp1
bind responder policylabel label_redirect_forSharepointAp2 https_redirect_for_sharepointA2 100 END
bind responder policylabel label_redirect_forSharepointAp1 https_redirect_for_sharepointA1 100 END
set responder param -undefAction NOOP
set cache parameter -memLimit 512 -via "NS-CACHE-8.0: 40" -verifyUsing HOSTNAME_AND_IP -
maxPostLen 4096 -enableBypass YES -undefAction NOCACHE
add cache selector sharepoint_body_getdocname
"HTTP.REQ.BODY(1000).SET_TEXT_MODE(URLENCODED).AFTER_STR(\"document%5fname=\").BEF
ORE_STR(\"&old%5ftheme%5fhtml=false\").SET_TEXT_MODE(URLENCODED).TO_UPPER"
add cache selector sharepoint_body_putdocname
"HTTP.REQ.BODY(1000).SET_TEXT_MODE(URLENCODED).AFTER_STR(\"document=%5bdocument%5
fname%3d\").BEFORE_STR(\"%3bmeta%5finfo%3d%5\").SET_TEXT_MODE(URLENCODED).TO_UPPER
"
add cache selector sharepoint_body_uplddocname
q{HTTP.REQ.BODY(10000).SET_TEXT_MODE(URLENCODED).AFTER_STR("name=\"destination\"\r\n\r\n
/").BEFORE_STR("\r\n-----------------------------").SET_TEXT_MODE(URLENCODED).TO_UPPER +
HTTP.REQ.URL.PATH.PREFIX(1) +
HTTP.REQ.BODY(10000).SET_TEXT_MODE(URLENCODED).AFTER_STR("filename=\"").BEFORE_STR(
"\"\r\nContent-Type:").SUFFIX('\\',0).SET_TEXT_MODE(URLENCODED).TO_UPPER}
add cache selector sharepoint_path HTTP.REQ.URL.PATH.TO_UPPER
add cache selector sharepoint_path_nostartslash "HTTP.REQ.URL.PATH.SUBSTR(1,255).TO_UPPER"
add cache selector sharepoint_query_SourceUrl
"HTTP.REQ.URL.QUERY.VALUE(\"SourceUrl\").TO_UPPER.TYPECAST_HTTP_URL_T.PATH.SUBSTR(1
,255)"
add cache selector SharePointCommon HTTP.REQ.URL.PATH HTTP.REQ.HOSTNAME



                                              Page 21                                     4/8/2011
v.1.0           Deployment guide for Citrix Application Template for Sharepoint 2010


add cache contentGroup DEFAULT -quickAbortSize 4194303 -memLimit 4095 -minHits 0
add cache contentGroup BASEFILE -relExpiry 86000 -weakNegRelExpiry 600 -quickAbortSize 4194303 -
maxResSize 256 -memLimit 2 -minHits 0
add cache contentGroup DELTAJS -relExpiry 86000 -weakNegRelExpiry 600 -insertAge NO -
quickAbortSize 4194303 -maxResSize 256 -memLimit 1 -minHits 0 -pinned YES
add cache contentGroup SHAREPOINT_FRONTPAGE_DOCS -relExpiry 3600000 -quickAbortSize
4194303 -maxResSize 10000 -memLimit 4095 -minHits 0 -hitSelector sharepoint_body_getdocname -
invalSelector sharepoint_body_getdocname
add cache contentGroup SHAREPOINT_DOCUMENTS -relExpiry 3600000 -pollEveryTime YES -
quickAbortSize 4194303 -maxResSize 10000 -memLimit 4095 -minHits 0 -hitSelector sharepoint_path -
invalSelector sharepoint_path
add cache contentGroup SHAREPOINT_DOWNLOADED_DOCS -relExpiry 3600000 -quickAbortSize
4194303 -maxResSize 10000 -memLimit 4095 -minHits 0 -hitSelector sharepoint_query_SourceUrl -
invalSelector sharepoint_query_SourceUrl
add cache contentGroup SHAREPOINT_IMAGES -quickAbortSize 4194303 -maxResSize 4000 -memLimit
4095 -minHits 0 -hitSelector SharePointCommon -invalSelector SharePointCommon
add cache contentGroup SHAREPOINT_SCRIPTS -quickAbortSize 4194303 -maxResSize 4000 -memLimit
4095 -minHits 0 -hitSelector SharePointCommon -invalSelector SharePointCommon
add cache policy _nonGetReq -rule "!HTTP.REQ.METHOD.eq(GET)" -action NOCACHE
add cache policy _advancedConditionalReq -rule "HTTP.REQ.HEADER(\"If-Match\").EXISTS ||
HTTP.REQ.HEADER(\"If-Unmodified-Since\").EXISTS" -action NOCACHE
add cache policy _personalizedReq -rule "HTTP.REQ.HEADER(\"Cookie\").EXISTS ||
HTTP.REQ.HEADER(\"Authorization\").EXISTS || HTTP.REQ.HEADER(\"Proxy-Authorization\").EXISTS ||
HTTP.REQ.IS_NTLM_OR_NEGOTIATE" -action MAY_NOCACHE
add cache policy _uncacheableStatusRes -rule "! ((HTTP.RES.STATUS.EQ(200)) ||
(HTTP.RES.STATUS.EQ(304)) || (HTTP.RES.STATUS.BETWEEN(400,499)) ||
(HTTP.RES.STATUS.BETWEEN(300, 302)) || (HTTP.RES.STATUS.EQ(307))||
(HTTP.RES.STATUS.EQ(203)))" -action NOCACHE
add cache policy _uncacheableCacheControlRes -rule "((HTTP.RES.CACHE_CONTROL.IS_PRIVATE) ||
(HTTP.RES.CACHE_CONTROL.IS_NO_CACHE) || (HTTP.RES.CACHE_CONTROL.IS_NO_STORE) ||
(HTTP.RES.CACHE_CONTROL.IS_INVALID))" -action NOCACHE
add cache policy _cacheableCacheControlRes -rule "((HTTP.RES.CACHE_CONTROL.IS_PUBLIC) ||
(HTTP.RES.CACHE_CONTROL.IS_MAX_AGE) ||
(HTTP.RES.CACHE_CONTROL.IS_MUST_REVALIDATE) ||
(HTTP.RES.CACHE_CONTROL.IS_PROXY_REVALIDATE) ||
(HTTP.RES.CACHE_CONTROL.IS_S_MAXAGE))" -action CACHE -storeInGroup DEFAULT
add cache policy _uncacheableVaryRes -rule "((HTTP.RES.HEADER(\"Vary\").EXISTS) &&
((HTTP.RES.HEADER(\"Vary\").INSTANCE(1).LENGTH > 0) ||
(!HTTP.RES.HEADER(\"Vary\").STRIP_END_WS.SET_TEXT_MODE(IGNORECASE).eq(\"Accept-
Encoding\"))))" -action NOCACHE
add cache policy _uncacheablePragmaRes -rule "HTTP.RES.HEADER(\"Pragma\").EXISTS" -action
NOCACHE
add cache policy _cacheableExpiryRes -rule "HTTP.RES.HEADER(\"Expires\").EXISTS" -action CACHE -
storeInGroup DEFAULT
add cache policy _imageRes -rule "HTTP.RES.HEADER(\"Content-
Type\").SET_TEXT_MODE(IGNORECASE).STARTSWITH(\"image/\")" -action CACHE -storeInGroup
DEFAULT
add cache policy _personalizedRes -rule "HTTP.RES.HEADER(\"Set-Cookie\").EXISTS ||
HTTP.RES.HEADER(\"Set-Cookie2\").EXISTS" -action NOCACHE
add cache policy cache_sharepoint_images -rule "HTTP.REQ.METHOD.EQ(GET)" -action CACHE -
storeInGroup SHAREPOINT_IMAGES
add cache policy inval_sharepoint_documents -rule "HTTP.REQ.METHOD.CONTAINS(\"LOCK\")&&
!HTTP.REQ.USER.NAME.EQ(\"\")" -action INVAL -invalObjects SHAREPOINT_DOCUMENTS
add cache policy cache_sharepoint_dld_docs -rule "HTTP.REQ.METHOD.EQ(GET) &&
HTTP.REQ.URL.PATH.EQ(\"/_layouts/download.aspx\")" -action CACHE -storeInGroup
SHAREPOINT_DOWNLOADED_DOCS
add cache policy cache_sharepoint_scripts -rule "HTTP.REQ.METHOD.EQ(GET)" -action CACHE -
storeInGroup SHAREPOINT_SCRIPTS
add cache policy cache_sharepoint_fp_docs -rule "HTTP.REQ.METHOD.EQ(POST) &&
HTTP.REQ.URL.PATH.EQ(\"/_vti_bin/_vti_aut/author.dll\") &&
HTTP.REQ.BODY(1000).STARTSWITH(\"method=get+document\")" -action CACHE -storeInGroup
SHAREPOINT_FRONTPAGE_DOCS



                                              Page 22                                    4/8/2011
v.1.0            Deployment guide for Citrix Application Template for Sharepoint 2010


add cache policy cache_sharepoint_documents -rule "HTTP.REQ.METHOD.EQ(GET)" -action CACHE -
storeInGroup SHAREPOINT_DOCUMENTS
add cache policy range_request_nocache -rule
"HTTP.REQ.FULL_HEADER.CONTAINS_ANY(\"ByteRangeHeaders\")" -action NOCACHE
add cache policy inval_sharepoint_fp_dld_docs -rule "HTTP.REQ.METHOD.CONTAINS(\"PUT\") ||
(HTTP.REQ.METHOD.EQ(POST) && HTTP.REQ.URL.PATH.EQ(\"/_vti_bin/_vti_aut/author.dll\") &&
HTTP.REQ.BODY(1000).STARTSWITH(\"method=put+document\")) || (HTTP.REQ.METHOD.EQ(POST)
&& HTTP.REQ.URL.PATH.EQ(\"/_layouts/Upload.aspx\"))" -action INVAL -invalObjects
"SHAREPOINT_FRONTPAGE_DOCS,sharepoint_path_nostartslash"
"SHAREPOINT_FRONTPAGE_DOCS,sharepoint_body_putdocname"
"SHAREPOINT_DOWNLOADED_DOCS,sharepoint_path_nostartslash"
"SHAREPOINT_DOWNLOADED_DOCS,sharepoint_body_putdocname"
"SHAREPOINT_DOWNLOADED_DOCS,sharepoint_body_uplddocname"
"SHAREPOINT_FRONTPAGE_DOCS,sharepoint_body_uplddocname"
add cache policylabel _reqBuiltinDefaults -evaluates REQ
add cache policylabel cache_sharepoint_fp_dld_docs -evaluates REQ
add cache policylabel cache_sharepoint_scripts -evaluates REQ
add cache policylabel cache_sharepoint_images -evaluates REQ
add cache policylabel cache_sharepoint_documents -evaluates REQ
add cache policylabel ByteRangeRequestsNoCache -evaluates REQ
add cache policylabel _resBuiltinDefaults -evaluates RES
bind cache policylabel _reqBuiltinDefaults -policyName _nonGetReq -priority 100 -gotoPriorityExpression
END
bind cache policylabel _reqBuiltinDefaults -policyName _advancedConditionalReq -priority 200 -
gotoPriorityExpression END
bind cache policylabel _reqBuiltinDefaults -policyName _personalizedReq -priority 300 -
gotoPriorityExpression END
bind cache policylabel cache_sharepoint_fp_dld_docs -policyName inval_sharepoint_fp_dld_docs -priority
80 -gotoPriorityExpression END
bind cache policylabel cache_sharepoint_fp_dld_docs -policyName cache_sharepoint_fp_docs -priority 90 -
gotoPriorityExpression END
bind cache policylabel cache_sharepoint_fp_dld_docs -policyName cache_sharepoint_dld_docs -priority
100 -gotoPriorityExpression END
bind cache policylabel cache_sharepoint_scripts -policyName cache_sharepoint_scripts -priority 100 -
gotoPriorityExpression END
bind cache policylabel cache_sharepoint_images -policyName cache_sharepoint_images -priority 100 -
gotoPriorityExpression END
bind cache policylabel cache_sharepoint_documents -policyName inval_sharepoint_documents -priority 90 -
gotoPriorityExpression END
bind cache policylabel cache_sharepoint_documents -policyName cache_sharepoint_documents -priority
100 -gotoPriorityExpression END
bind cache policylabel ByteRangeRequestsNoCache -policyName range_request_nocache -priority 100 -
gotoPriorityExpression END
bind cache policylabel _resBuiltinDefaults -policyName _uncacheableStatusRes -priority 100 -
gotoPriorityExpression END
bind cache policylabel _resBuiltinDefaults -policyName _uncacheableVaryRes -priority 200 -
gotoPriorityExpression END
bind cache policylabel _resBuiltinDefaults -policyName _uncacheableCacheControlRes -priority 300 -
gotoPriorityExpression END
bind cache policylabel _resBuiltinDefaults -policyName _cacheableCacheControlRes -priority 400 -
gotoPriorityExpression END
bind cache policylabel _resBuiltinDefaults -policyName _uncacheablePragmaRes -priority 500 -
gotoPriorityExpression END
bind cache policylabel _resBuiltinDefaults -policyName _cacheableExpiryRes -priority 600 -
gotoPriorityExpression END
bind cache policylabel _resBuiltinDefaults -policyName _imageRes -priority 700 -gotoPriorityExpression
END
bind cache policylabel _resBuiltinDefaults -policyName _personalizedRes -priority 800 -
gotoPriorityExpression END
bind cache global NOPOLICY -priority 185883 -gotoPriorityExpression NEXT -type REQ_DEFAULT -invoke
policylabel _reqBuiltinDefaults




                                               Page 23                                        4/8/2011
v.1.0           Deployment guide for Citrix Application Template for Sharepoint 2010


bind cache global NOPOLICY -priority 185883 -gotoPriorityExpression NEXT -type RES_DEFAULT -invoke
policylabel _resBuiltinDefaults
bind lb vserver app_0_ApplicationsSharePoint mycitrite
bind lb vserver app_u_SharePointFrontPage_Services mycitrite
bind lb vserver app_u_SharePointSOAP_Services mycitrite
bind lb vserver app_u_SharePointPortal_Management mycitrite
bind lb vserver app_u_SharePointDocument_Management mycitrite
bind lb vserver app_u_SharePointEditable_Image_Management mycitrite
bind lb vserver app_u_SharePointReadOnly_Image_Management mycitrite
bind lb vserver app_u_SharePointStyles_and_Scripts mycitrite
bind lb vserver app_u_SharePointWeb_Service_Definitions mycitrite
bind lb vserver app_u_SharePointWeb_Service_Schemas mycitrite
bind lb vserver app_o_SharePointdefault mycitrite
bind lb vserver app_u_SharePointFrontPage_Services -policyName sharepoint_compress
bind lb vserver app_u_SharePointSOAP_Services -policyName sharepoint_compress
bind lb vserver app_u_SharePointPortal_Management -policyName sharepoint_compress
bind lb vserver app_u_SharePointDocument_Management -policyName sharepoint_cmpnotgz
bind lb vserver app_u_SharePointEditable_Image_Management -policyName SharePoint-cmp-image -
priority 100
bind lb vserver app_u_SharePointReadOnly_Image_Management -policyName SharePoint-cmp-image -
priority 100
bind lb vserver app_u_SharePointStyles_and_Scripts -policyName sharepoint_compress
bind lb vserver app_u_SharePointWeb_Service_Definitions -policyName sharepoint_compress
bind lb vserver app_u_SharePointWeb_Service_Schemas -policyName sharepoint_compress
bind lb vserver app_u_SharePointFrontPage_Services -policyName NOPOLICY-CACHE -priority 100 -
gotoPriorityExpression END -type REQUEST -invoke policylabel cache_sharepoint_fp_dld_docs
bind lb vserver app_u_SharePointPortal_Management -policyName NOPOLICY-CACHE -priority 90 -
gotoPriorityExpression NEXT -type REQUEST -invoke policylabel ByteRangeRequestsNoCache
bind lb vserver app_u_SharePointPortal_Management -policyName NOPOLICY-CACHE -priority 100 -
gotoPriorityExpression END -type REQUEST -invoke policylabel cache_sharepoint_fp_dld_docs
bind lb vserver app_u_SharePointDocument_Management -policyName NOPOLICY-CACHE -priority 80 -
gotoPriorityExpression NEXT -type REQUEST -invoke policylabel ByteRangeRequestsNoCache
bind lb vserver app_u_SharePointDocument_Management -policyName NOPOLICY-CACHE -priority 90 -
gotoPriorityExpression NEXT -type REQUEST -invoke policylabel cache_sharepoint_fp_dld_docs
bind lb vserver app_u_SharePointDocument_Management -policyName NOPOLICY-CACHE -priority 100 -
gotoPriorityExpression END -type REQUEST -invoke policylabel cache_sharepoint_documents
bind lb vserver app_u_SharePointEditable_Image_Management -policyName NOPOLICY-CACHE -priority
70 -gotoPriorityExpression NEXT -type REQUEST -invoke policylabel ByteRangeRequestsNoCache
bind lb vserver app_u_SharePointEditable_Image_Management -policyName NOPOLICY-CACHE -priority
80 -gotoPriorityExpression NEXT -type REQUEST -invoke policylabel cache_sharepoint_fp_dld_docs
bind lb vserver app_u_SharePointEditable_Image_Management -policyName NOPOLICY-CACHE -priority
90 -gotoPriorityExpression END -type REQUEST -invoke policylabel cache_sharepoint_documents
bind lb vserver app_u_SharePointReadOnly_Image_Management -policyName NOPOLICY-CACHE -priority
90 -gotoPriorityExpression NEXT -type REQUEST -invoke policylabel ByteRangeRequestsNoCache
bind lb vserver app_u_SharePointReadOnly_Image_Management -policyName NOPOLICY-CACHE -priority
100 -gotoPriorityExpression END -type REQUEST -invoke policylabel cache_sharepoint_images
bind lb vserver app_u_SharePointStyles_and_Scripts -policyName NOPOLICY-CACHE -priority 90 -
gotoPriorityExpression NEXT -type REQUEST -invoke policylabel ByteRangeRequestsNoCache
bind lb vserver app_u_SharePointStyles_and_Scripts -policyName NOPOLICY-CACHE -priority 100 -
gotoPriorityExpression END -type REQUEST -invoke policylabel cache_sharepoint_scripts
bind cs vserver mycitrite app_u_SharePointFrontPage_Services -policyName app_cs0 -priority 25
bind cs vserver mycitrite app_u_SharePointSOAP_Services -policyName app_cs1 -priority 50
bind cs vserver mycitrite app_u_SharePointPortal_Management -policyName app_cs2 -priority 100
bind cs vserver mycitrite app_u_SharePointDocument_Management -policyName app_cs3 -priority 225
bind cs vserver mycitrite app_u_SharePointEditable_Image_Management -policyName app_cs5 -priority
250
bind cs vserver mycitrite app_u_SharePointReadOnly_Image_Management -policyName app_cs4 -priority
325
bind cs vserver mycitrite app_u_SharePointStyles_and_Scripts -policyName app_cs6 -priority 400
bind cs vserver mycitrite app_u_SharePointWeb_Service_Definitions -policyName app_cs7 -priority 500
bind cs vserver mycitrite app_u_SharePointWeb_Service_Schemas -policyName app_cs8 -priority 600
bind cs vserver mycitrite app_o_SharePointdefault



                                              Page 24                                     4/8/2011
v.1.0            Deployment guide for Citrix Application Template for Sharepoint 2010


add dns addRec mycitrite.citrite.net 10.9.154.149
set lb monitor ldns-tcp LDNS-TCP -destPort 20480
set lb monitor ldns-dns LDNS-DNS -query . -queryType Address -destPort 13568
bind lb monitor tcp SP-Server
add route 0.0.0.0 0.0.0.0 10.217.22.1
set ssl parameter -encryptTriggerPktCount 45
add ssl certKey ns-server-certificate -cert ns-server.cert -key ns-server.key
add ssl certKey auth -cert ns-root.cert -key ns-root.key
set ssl service nshttps-::1l-443 -sessReuse ENABLED -sessTimeout 120
set ssl service nsrpcs-::1l-3008 -sessReuse ENABLED -sessTimeout 120 -cipherRedirect DISABLED -
sslv2Redirect DISABLED
set ssl service nskrpcs-127.0.0.1-3009 -sessReuse ENABLED -sessTimeout 120 -cipherRedirect
DISABLED -sslv2Redirect DISABLED
set ssl service nshttps-127.0.0.1-443 -sessReuse ENABLED -sessTimeout 120 -cipherRedirect DISABLED -
sslv2Redirect DISABLED
set ssl service nsrpcs-127.0.0.1-3008 -sessReuse ENABLED -sessTimeout 120 -cipherRedirect DISABLED
-sslv2Redirect DISABLED
set aaa parameter -maxAAAUsers 5
set aaa preauthenticationparameter -preauthenticationaction ALLOW -rule ns_true
set vpn parameter -splitDns BOTH -defaultAuthorizationAction DENY -forceCleanup none -clientOptions all -
clientConfiguration all
set tm sessionParameter -SSO ON
set audit syslogParams -serverIP 127.0.0.1
set audit nslogParams -serverIP 127.0.0.1
set lb sipParameters -addRportVip ENABLED
bind ssl service nshttps-::1l-443 -certkeyName ns-server-certificate
bind ssl service nsrpcs-::1l-3008 -certkeyName ns-server-certificate
bind ssl service nskrpcs-127.0.0.1-3009 -certkeyName ns-server-certificate
bind ssl service nshttps-127.0.0.1-443 -certkeyName ns-server-certificate
bind ssl service nsrpcs-127.0.0.1-3008 -certkeyName ns-server-certificate
bind ssl vserver SP-AAA -certkeyName auth
set filter prebodyInjection "ens/prebody.js"
set ns hostName ns
set uiinternal EXPRESSION app_0_ApplicationsSharePoint -uiinfo
"P%Applications^ET%PE^CS%mycitrite^"
set uiinternal EXPRESSION app_u_SharePointFrontPage_Services -uiinfo
"PR%25^ET%PI^P%app_0_ApplicationsSharePoint^CS%mycitrite^" -rule "HTTP.REQ.HEADER(\"X-
Vermeer-Content-Type\").EXISTS"
set uiinternal EXPRESSION app_u_SharePointSOAP_Services -uiinfo
"ET%PI^PR%50^P%app_0_ApplicationsSharePoint^CS%mycitrite^" -rule
"HTTP.REQ.METHOD.EQ(POST) && HTTP.REQ.HEADER(\"soapaction\").EXISTS"
set uiinternal EXPRESSION app_u_SharePointPortal_Management -uiinfo
"PR%100^P%app_0_ApplicationsSharePoint^ET%PI^CS%mycitrite^" -rule
"HTTP.REQ.URL.CONTAINS_ANY(\"aspnet\")"
set uiinternal EXPRESSION app_u_SharePointDocument_Management -uiinfo
"PR%225^P%app_0_ApplicationsSharePoint^ET%PI^CS%mycitrite^" -rule
"Q.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"DocExtensions\")||
(Q.URL.SUFFIX.EQ(\"dll\") && !Q.URL.CONTAINS_ANY(\"vtibin\")) || (Q.URL.SUFFIX.EQ(\"axd\") &&
!Q.URL.CONTAINS(\" /WebResource.axd\")) || (!Q.URL.CONTAINS( \"/_layouts/\") &&
HTTP.REQ.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"cssjs\")) || (
Q.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"htmls\") && !Q.URL.CONTAINS(
\"/_layouts/blank.htm\"))"
set uiinternal EXPRESSION app_u_SharePointEditable_Image_Management -uiinfo
"PR%250^P%app_0_ApplicationsSharePoint^ET%PI^CS%mycitrite^" -rule
"!HTTP.REQ.URL.CONTAINS(\"/_layouts/\")&&
HTTP.REQ.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"imageExtensions\")"
set uiinternal EXPRESSION app_u_SharePointReadOnly_Image_Management -uiinfo
"P%app_0_ApplicationsSharePoint^ET%PI^PR%325^CS%mycitrite^" -rule
"HTTP.REQ.URL.CONTAINS(\"/_layouts/\")&&
HTTP.REQ.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"imageExtensions\")"
set uiinternal EXPRESSION app_u_SharePointStyles_and_Scripts -uiinfo
"PR%400^P%app_0_ApplicationsSharePoint^ET%PI^CS%mycitrite^" -rule



                                                Page 25                                         4/8/2011
v.1.0           Deployment guide for Citrix Application Template for Sharepoint 2010


"Q.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS(\"WebResource.axd\") ||
(Q.URL.CONTAINS(\"/_layouts\") &&
Q.URL.SUFFIX.SET_TEXT_MODE(IGNORECASE).EQUALS_ANY(\"cssjs\"))"
set uiinternal EXPRESSION app_u_SharePointWeb_Service_Definitions -uiinfo
"PR%500^ET%PE^P%app_0_ApplicationsSharePoint^CS%mycitrite^" -rule "(URL CONTAINS ?wsdl || URL
CONTAINS .wsdl || URL CONTAINS ?wsil || URL CONTAINS .wsil || URL == \'/*.xml\') || (URL CONTAINS
?WSDL || URL CONTAINS .WSDL || URL CONTAINS ?WSIL || URL CONTAINS .WSIL || URL ==
\'/*.XML\')"
set uiinternal EXPRESSION app_u_SharePointWeb_Service_Schemas -uiinfo
"PR%600^ET%PE^P%app_0_ApplicationsSharePoint^CS%mycitrite^" -rule "URL CONTAINS .xsd || URL
CONTAINS .XSD"
set uiinternal EXPRESSION app_o_SharePointdefault -uiinfo
"ET%PE^P%app_0_ApplicationsSharePoint^CS%mycitrite^"




                                              Page 26                                    4/8/2011

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:625
posted:4/8/2011
language:English
pages:26