cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dispatcher - Variables from Instance Profile

0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

isaias_freitas
Advisor
Advisor
0 Kudos

Hello,

As far as I know, you cannot do this.

Best regards,

Isaías

Former Member
0 Kudos

Dear

i don't think that we can user port_https in rules.txt

Regards