Rewrite Header

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 23 Feb 2015, 09:30

Rewrite Header

23 Feb 2015, 11:14

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 :)

RewriteEngine on
RewriteHeader HTTP_VARIABLE: (.*) USERNAME.test
RewriteRule (.*) http://localhost:8888$1 [P]

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Rewrite Header

23 Feb 2015, 11:55

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

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 7 guests