Coyote Point Systems Equalizer Especificaciones Pagina 351

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 594
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 350
l parse the URL of an incoming request
l break it down into separate strings (based on the positions of literal characters in the expression)
l assign each string to a named variable
These named variables can then be used in the URL field of the Redirect Responder. When the Responder replies
to a client, it performs string substitution on the URL.
Because the purpose of using regular expressions to perform string substitution in Redirect URLs is to parse
request URLs into strings, constructing an appropriate regular expression requires an exact knowledge of the
format of the request URLs that will typically be coming in to the cluster IP.
Equalizer supports POSIX-style extended regular expressions.
See the examples that follow below to help you understand how regular expressions are constructed and
interpreted by Responders.
Example 1 - HTTPS Redirect
The simplest form of HTTPS redirect involves simply referring the user to the top level of the https:// site,
regardless of the path information that may have been included in the original request URL. For example, we could
direct all requests for:
http://www.example.com/<path>
to:
https://www.example.com
But, this forces the client to re-specify the <path> after the redirect. It would be better to redirect to a URL that
includes the path information:
https://www.example.com/<path>
The following regular expression:
^(([^ :/?#]+):)?//(.*)
breaks a request URL into the following named variables:
$0 http://www.example.com/<path>
$1 http
$2 http:
$3 www.example.com/<path>
We can then use these variables in the URL field as shown in the following Responder Configuration screen
(tab):
Copyright © 2013 Coyote Point Systems. A subsidiary of Fortinet, Inc.
All Rights Reserved.
351
Equalizer Administration Guide
Vista de pagina 350
1 2 ... 346 347 348 349 350 351 352 353 354 355 356 ... 593 594

Comentarios a estos manuales

Sin comentarios