Windows 2008 IIS7 - HTTP_X_REWRITE_URL returns -1
4 posts
• Page 1 of 1
Windows 2008 IIS7 - HTTP_X_REWRITE_URL returns -1
I was using ISAPI_Rewrite 3 on our server, yet now decided to move HeliconApe
I'm using Classic ASP. While every redirection works, I can't get HTTP_X_REWRITE_URL server variable like I used to... (and also REQUEST_URI returns empty string)
I added, SetEnv module enabled and also following line on httpd.conf, and also using default httpd.conf as installed
1. Rewrite Rules and Conds work but HTTP_X_REWRITE_URL variable returns -1 always.
2. Application Pool is Integrated Mode with ASP.Net 2.0 Managed code.
3. Since I use 32-bit Applications, that option is set to true in AppPool, but on Win7 server, 32-bit app pools also true but X_REWRITE_URL returns good.
4. I have Microsoft's Administration Pack installed, also used to install URL Rewrite 2.0 module before installing Helicon Ape but uninstalled it, also MS Web Farm Pack 1 & Web Platform Installer are installed (with default settings)
What may be possible reasons IIS7 do that?
PS: My company is registered user of HeliconApe (so that we can use it in every site)
I'm using Classic ASP. While every redirection works, I can't get HTTP_X_REWRITE_URL server variable like I used to... (and also REQUEST_URI returns empty string)
I added, SetEnv module enabled and also following line on httpd.conf, and also using default httpd.conf as installed
- Code: Select all
SetEnvIf %{REQUEST_URI} (.*) HTTP_X_REWRITE_URL=$1
1. Rewrite Rules and Conds work but HTTP_X_REWRITE_URL variable returns -1 always.
2. Application Pool is Integrated Mode with ASP.Net 2.0 Managed code.
3. Since I use 32-bit Applications, that option is set to true in AppPool, but on Win7 server, 32-bit app pools also true but X_REWRITE_URL returns good.
4. I have Microsoft's Administration Pack installed, also used to install URL Rewrite 2.0 module before installing Helicon Ape but uninstalled it, also MS Web Farm Pack 1 & Web Platform Installer are installed (with default settings)
What may be possible reasons IIS7 do that?
PS: My company is registered user of HeliconApe (so that we can use it in every site)
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Windows 2008 IIS7 - HTTP_X_REWRITE_URL returns -1
Hello,
You need to switch from classic to integrated.
Make sure you also have only 1 thing running Ape, without another ISAPI_Rewrite or Windows Rewriter as they may interact.
Regards
Andrew
You need to switch from classic to integrated.
Make sure you also have only 1 thing running Ape, without another ISAPI_Rewrite or Windows Rewriter as they may interact.
Regards
Andrew
Re: Windows 2008 IIS7 - HTTP_X_REWRITE_URL returns -1
HeliconAndrew wrote:Hello,
You need to switch from classic to integrated.
Make sure you also have only 1 thing running Ape, without another ISAPI_Rewrite or Windows Rewriter as they may interact.
Regards
Andrew
Well, it's already integrated as I mentioned above. I just use classicASP as programming, not classic AppPool and currently nothing else than Ape running... Problem exist in such state...
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Windows 2008 IIS7 - HTTP_X_REWRITE_URL returns -1
Please, try using the following(modify if needed)
This works fine in our environment. The result is the following:
Please, provide your result.
Regards
Andrew
- Code: Select all
SetEnvIf %{REQUEST_URI} (.*) HTTP_X_REWRITE_URL=$1
Header set Xxx %{HTTP_X_REWRITE_URL}e
RewriteEngine on
RewriteRule .? xxx.html [L]
This works fine in our environment. The result is the following:
- Code: Select all
GET / HTTP/1.1\r\n
Host: localhost\r\n
Accept: */*\r\n
\r\n
RESPONSE: **************\nHTTP/1.1 200 OK\r\n
Cache-Control: private\r\n
Content-Type: text/html\r\n
Last-Modified: Fri, 06 Apr 2012 09:08:56 GMT\r\n
Accept-Ranges: bytes\r\n
ETag: "d0a44ce5d413cd1:0"\r\n
Server: Microsoft-IIS/7.5\r\n
Xxx: /\r\n
X-Powered-By: ASP.NET\r\n
Date: Fri, 06 Apr 2012 09:11:39 GMT\r\n
Content-Length: 3\r\n
\r\n
xxx
Please, provide your result.
Regards
Andrew
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests