Redirect or proxy_pass?

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 6
Joined: 27 Jan 2016, 16:18

Redirect or proxy_pass?

27 Jan 2016, 16:23

I have downloaded the free version of ISAPI_Rewrite, for testing. I have set up the following rule:

<VirtualHost localhost:443 mysite.com:443 http://www.mysite.com:443 localhost:443>
RewriteEngine on
RewriteBase /
RewriteCond %{REMOTE_USER} ^/bella.*
RewriteRule (.*)$ http://heizungskeller/heizung.htm [NC]
</VirtualHost>

User "bella" should be locked onto the static file heizung.htm and should not be allowed to go anywhere else. The problem is that RewriteRule appears to redirect the browser, rather than proxy_pass the request to the internal server heizungskeller. Is this a limitation of the free version, or I am missing something?

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

Re: Redirect or proxy_pass?

29 Jan 2016, 12:39

Hello.

Add a [P] flag to the RewriteRule directive.

User avatar
Posts: 6
Joined: 27 Jan 2016, 16:18

Re: Redirect or proxy_pass?

30 Jan 2016, 03:03

thanks - this took care of the issue!

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 12 guests