-
AppExpert Applications and Templates
-
Configure application authentication, authorization, and auditing
-
-
Advanced Policy Expressions: Working with Dates, Times, and Numbers
-
Advanced Policy Expressions: Parsing HTTP, TCP, and UDP Data
-
Advanced Policy Expressions: IP and MAC Addresses, Throughput, VLAN IDs
-
-
-
-
-
Configure URL transformation to rewrite and proxy requests
This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已动态机器翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.
Este artigo foi traduzido automaticamente.
这篇文章已经过机器翻译.放弃
Translation failed!
Configure URL transformation to rewrite and proxy requests
The following section describes the procedure to use NetScaler URL transformation to rewrite and proxy requests.
The rewrite or proxy function in Apache is used to transmit the requests to a host from a different domain. The request is changed to appear as though it is coming from the same host. One of the practical applications of this feature is when you have content being pulled from different locations, and JavaScripts are used. The browser might not allow it to prevent cross-site scripting attacks. You can use the NetScaler appliance to emulate the rewrite or proxy function in Apache.
Prerequisites
To use the URL transformation to rewrite and proxy requests, make sure the following prerequisites are met.
- The rewrite and content switching features must be enabled on the NetScaler appliance.
- NetScaler feature release version 9.0 and later.
You can follow the subsequent steps to use the NetScaler URL transformation to rewrite and proxy requests.
Perform the following by using the CLI
-
Define a content switching virtual server, which routes the incoming request to the IP of www.external.com. For more information on configuring a content switching virtual server, see Content Switching.
-
Configure the URL transformation.
-
Create transformation profile and action.
add transform profile proxy_rewrite
add transform action rewrite1 proxy_rewrite 10
set transform action rewrite1 -priority 10 -reqUrlFrom "http://www.company.com/key/(.*)" -reqUrlInto "http://www.external.com/$1" -resUrlFrom "http://www.external.com/(.*)" -resUrlInto http://www.example.com/key/$1
-
Create and bind transformation policy.
add transform policy rewrite_pol "HTTP.REQ.URL.PATH.GET(1).EQ(\"key\") && http.REQ.HOSTNAME.EQ(\"www.example.com\")" proxy_rewrite
bind transform global rewrite_pol 100
-
Note
The preceding procedure takes the incoming request from www.example.com that is identified by /key/directory, and rewrites them to host www.external.com, by removing the /key/ directory. For example,
RewriteRule http://www.example.com/key/(.*)http://www.external.com/$1 [P,L]
.
Share
Share
In this article
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.