
Automatic Cluster Responders
This Responder can be used in any cluster where a Redirect to an HTTPS cluster is desired.
Example 2 - Multi-Hostname Redirect
Let’s assume that we have a set of ".com" host names, all of which resolve to the same cluster IP, and we need a
Responder that redirects requests to the same hostname prefixes with a ".net" suffix. We also want to include the
rest of the URL exactly as specified by the client. For example, we want requests to URLs in these formats:
http://www.example.com/<path>
http://www.example2.com/<path>
http://www.example3.com/<path>
to be redirected to the following URLs:
http://www.example.net/<path>
http://www.example2.net/<path>
http://www.example3.net/<path>
The following regular expression:
^(([^ :/?#]+):)?//([^ \r/?#.]+)?\.([^ \r/?#.]+)?\.([^ \r/?#]+)?(/[^ \r]+)?
breaks the request URL into the following named variables:
$0 http://www.example.com/<path>
$1 http:
$2 http
$3 www
$4 example
$5 com
$6 /<path>
We can then use these variables in the URL field as shown in the following Responder Configuration screen
(tab):
352
Copyright © 2013 Coyote Point Systems. A subsidiary of Fortinet, Inc.
Comentarios a estos manuales