Rewrite Header
2 posts
• Page 1 of 1
Rewrite Header
Hi@all.
I am really new to this ISAP_Rewrite. I am testing with this tool as IIS URL rewrite is doing the authentication after the rewrite so I do not have AUTH_USER,LOGON_USER or REMOTE_USER in my HTTP Header.
At the moment I am trying to add a custom variable to the HTTP Header but it is not working at all.
Does anybody here maybe have a sec to give me a usefull hint![Smile :)](./images/smilies/icon_e_smile.gif)
RewriteEngine on
RewriteHeader HTTP_VARIABLE: (.*) USERNAME.test
RewriteRule (.*) http://localhost:8888$1 [P]
I am really new to this ISAP_Rewrite. I am testing with this tool as IIS URL rewrite is doing the authentication after the rewrite so I do not have AUTH_USER,LOGON_USER or REMOTE_USER in my HTTP Header.
At the moment I am trying to add a custom variable to the HTTP Header but it is not working at all.
Does anybody here maybe have a sec to give me a usefull hint
![Smile :)](./images/smilies/icon_e_smile.gif)
RewriteEngine on
RewriteHeader HTTP_VARIABLE: (.*) USERNAME.test
RewriteRule (.*) http://localhost:8888$1 [P]
Re: Rewrite Header
Hello!
It is not quite clear to me what are you trying to achieve? Are you using authentication? If yes, then what sort of it and what module is doing it? Is it standard IIS authentication?
What you are doing is probably achievable with Helicon Ape as it has various authentication features, that you can configure with .htaccess and .htpasswd files under your web site. IIS built-in authentication should be disabled if you plan to use Ape for authentication. Please read: http://www.helicontech.com/articles/sit ... ows-users/
If you are just trying to pass authentication headers to the backend machine, then you can use [A] flag of RewriteProxy directive of ISAPI_Rewrite (instead of using RewriteRule and RewriteHeader pair): http://www.helicontech.com/isapi_rewrit ... eProxy.htm
It is not quite clear to me what are you trying to achieve? Are you using authentication? If yes, then what sort of it and what module is doing it? Is it standard IIS authentication?
What you are doing is probably achievable with Helicon Ape as it has various authentication features, that you can configure with .htaccess and .htpasswd files under your web site. IIS built-in authentication should be disabled if you plan to use Ape for authentication. Please read: http://www.helicontech.com/articles/sit ... ows-users/
If you are just trying to pass authentication headers to the backend machine, then you can use [A] flag of RewriteProxy directive of ISAPI_Rewrite (instead of using RewriteRule and RewriteHeader pair): http://www.helicontech.com/isapi_rewrit ... eProxy.htm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests