on 08-09-2016 10:17 AM
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
Hello,
As far as I know, you cannot do this.
Best regards,
Isaías
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear
i don't think that we can user port_https in rules.txt
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.