我找到了这个使用 netscaler 在特定端口上重写对内部服务器的请求的示例。
设置转换操作 trans_action_RSA_SS -priority 1000 -reqUrlFrom " https://rsa.domain.public " -reqUrlInto "<a href="https://rsa.domain.local:7004" rel="nofollow">https:// rsa.domain.local:7004" -resUrlFrom " https://rsa.domain.local:7004 " -resUrlInto " https://rsa.domain.public "
我想扩展该示例以将本地目的地指向虚拟服务器。
假设我的虚拟服务器被称为 INTERNALVSERVER 并且还假设它被配置为 3 个节点前面的负载均衡器(我怀疑其细节与这种情况无关)。
我只想确保我的 urltransform 正确应用于我的虚拟服务器。从概念上讲,我要这样做:
设置转换操作 trans_action_RSA_SS -priority 1000 -reqUrlFrom " https://rsa.domain.public " -reqUrlInto "<a href="https://INTERNALVSERVER:7004" rel="nofollow">https://INTERNALVSERVER:7004" -resUrlFrom " https://INTERNALVSERVER:7004 " -resUrlInto " https://rsa.domain.public "