Skip to Content
0
Former Member
Aug 09, 2016 at 09:17 AM

Web Dispatcher - Variables from Instance Profile

83 Views

Hello,

is it possible to access variables of a web dispatcher instance profile from icm/HTTP/mod_XX rules file?

For example:

WDP Instance Profile:

<snip>

# define my own variable

WDP_INST_PORT_HTTPS = 44382

.........................

# define http modifications

icm/HTTP/mod_0 = PREFIX=/,FILE=$(DIR_PROFILE)\rules.txt

</snip>

content of rules.txt:


If %{SERVER_PROTOCOL} !stricmp "https"

RegIRedirectUrl /(.*) https://%{SERVER_NAME}:44382/$1 [code=permanent]

Is it possible to use the variable WDP_INST_PORT_HTTPS in rules.txt?

I tested: RegIRedirectUrl /(.*) https://%{SERVER_NAME}:$(WDP_INST_PORT_HTTPS)/$1 [code=permanent] and RegIRedirectUrl /(.*) https://%{SERVER_NAME}:${WDP_INST_PORT_HTTPS}/$1 [code=permanent] without success.

Best regards

Oliver