This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: RewriteRule Ignoring CO option
Author
Message |
henknijveld
Newbie


Joined: 19 July 2010
Location: Netherlands
Posts: 5
Posted: 06 September 2010 at 5:36am

Hi All,

I have a little problem with RewriteRule, but cannot pinpoint the problem. This is on a Windows 2003 server.

This one works like sharm (we get a 403 and a cookie):

RewriteRule .* - [R=403,CO=BLCID:balancer.www1:.site1.com]

This one doesnt: (no cookie)

RewriteRule .* - [CO=BLCID:balancer.www1:.site1.com]

The code is from the http://www.helicontech.com/ape/doc/mod_proxy.htm (mod_proxy as balancer with php sticky sessions)

Somebody to help me out of this one?

ps: This functionality is working with apache....

Regards,

Henk

 



Edited by henknijveld - 06 September 2010 at 5:42am
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 06 September 2010 at 7:04am

We've run some tests and haven't seen any issues.
You can take a look at firebug report to make sure the cookie is there.


OR this might be the domain problem, so please, try RewriteRule .* - [CO=BLCID:balancer.www1]

Regards
Andrew
Back to Top
 
henknijveld
Newbie


Joined: 19 July 2010
Location: Netherlands
Posts: 5
Posted: 07 September 2010 at 2:22am

I have made some tests to figure things out....

Test 1

.htaccess:
RewriteEngine On
RewriteRule .* - [R=405,CO=BALANCEID:balancer.server2:.xxxxxxx]

rewrite.log
[rid#49212206/initial] (1) [perdir c:\inetpub\server2\] init rewrite engine with /test.html
[rid#49212206/initial] (5) [perdir c:\inetpub\server2\] strip matching prefix: /test.html -> test.html
[rid#49212206/initial] (3) [perdir c:\inetpub\server2\] applying pattern .* to uri test.html
[rid#49212206/initial] (5) [perdir c:\inetpub\server2\] add per-dir prefix: test.html -> /test.html
[rid#49212206/initial] (2) [perdir c:\inetpub\server2\] escaping /test.html
[rid#49212206/initial] (2) [perdir c:\inetpub\server2\] forcing responsecode 405 for http://server2.xxxxxxx/test.html

Wireshark:
GET /test.html HTTP/1.1

Host: server2.xxxxxxx

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: nl

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 115

Connection: keep-alive

Pragma: no-cache

Cache-Control: no-cache

 

HTTP/1.1 405 Method Not Allowed

Date: Mon, 06 Sep 2010 13:23:11 GMT

Server: Microsoft-IIS/6.0

X-Powered-By: ASP.NET

X-AspNet-Version: 2.0.50727

Location: http://server2.xxxxxxx/test.html

Set-Cookie: balanceid=balancer.server2; domain=.xxxxxxx; path=/

Cache-Control: private

Content-Type: text/html

Content-Length: 259


------------------------------------------------------------------------------------------

Test 2

.htaccess:
RewriteEngine On
RewriteRule .* - [R=405,CO=BALANCEID:balancer.server2]

Wireshark:
GET /test.html HTTP/1.1

Host: server2.xxxxxxx

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: nl

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 115

Connection: keep-alive

Pragma: no-cache

Cache-Control: no-cache

 

HTTP/1.1 405 Method Not Allowed

Date: Mon, 06 Sep 2010 13:29:51 GMT

Server: Microsoft-IIS/6.0

X-Powered-By: ASP.NET

X-AspNet-Version: 2.0.50727

Location: http://server2.xxxxxxx/test.html

Set-Cookie: balanceid=balancer.server2; path=/

Cache-Control: private

Content-Type: text/html

Content-Length: 265

[rid#7244975/initial] (1) [perdir c:\inetpub\server2\] init rewrite engine with /test.html
[rid#7244975/initial] (5) [perdir c:\inetpub\server2\] strip matching prefix: /test.html -> test.html
[rid#7244975/initial] (3) [perdir c:\inetpub\server2\] applying pattern .* to uri test.html
[rid#7244975/initial] (5) [perdir c:\inetpub\server2\] add per-dir prefix: test.html -> /test.html
[rid#7244975/initial] (2) [perdir c:\inetpub\server2\] escaping /test.html
[rid#7244975/initial] (2) [perdir c:\inetpub\server2\] forcing responsecode 405 for http://server2.xxxxxxx/test.html

------------------------------------------------------------------------------------------

Test 3

.htaccess:
RewriteEngine On
RewriteRule .* - [CO=BALANCEID:balancer.server2]


Wireshark:
GET /test.html HTTP/1.1

Host: server2.xxxxxxx

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: nl

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 115

Connection: keep-alive

 

HTTP/1.1 200 OK

Content-Length: 8

Content-Type: text/html

Content-Location: http://server2.xxxxxxx/test.html

Last-Modified: Mon, 06 Sep 2010 13:29:08 GMT

Accept-Ranges: bytes

ETag: "60e8f97bc74dcb1:2c2"

Server: Microsoft-IIS/6.0

X-Powered-By: ASP.NET

Date: Mon, 06 Sep 2010 13:53:55 GMT


[rid#7244975/initial] (1) [perdir c:\inetpub\server2\] init rewrite engine with /test.html
[rid#7244975/initial] (5) [perdir c:\inetpub\server2\] strip matching prefix: /test.html -> test.html
[rid#7244975/initial] (3) [perdir c:\inetpub\server2\] applying pattern .* to uri test.html
[rid#7244975/initial] (5) [perdir c:\inetpub\server2\] add per-dir prefix: test.html -> /test.html

------------------------------------------------------------------------------------------

There is only one thing that looks weird is a ETag header is added, and de X-AspNet-Version is missing, and the headers are in reversed order....????

I have installed the latest 3.0.0.48 version, and test the set again, with the same result


 

 

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 07 September 2010 at 3:35am

The reason for the issues can vary. It might be any cache or other ISAPI_filters.
So if this web site is on dev server we may join you in RDP or any other online meeting (we usually use TeamViewer) to figure out the
solution.
Is this going to work for you?

Regards
Abndrew
Back to Top
 
henknijveld
Newbie


Joined: 19 July 2010
Location: Netherlands
Posts: 5
Posted: 07 September 2010 at 5:37am

Hi,

RDP or TeamViewer session will do. Here at work is is a bit complicated (restriction policy's). I will install at home a brand new IIS6 server with only ape and .NET 2.0 configured. And then, RDP or TV is no problem.

Maybe in combination with skype, we can work this out.

What timezone do you live? (to schedule a meeting)

Regards, Henk

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 08 September 2010 at 3:44am

Hello Henk,

my skype name is 'zzz' and my timezone is +2GMT.
Please do not hesitate to contact me via skype and set meeting credentials.

Regards
Andrew

Edited by AndrushkaUS - 08 September 2010 at 9:42am
Back to Top
 
henknijveld
Newbie


Joined: 19 July 2010
Location: Netherlands
Posts: 5
Posted: 08 September 2010 at 4:26am

Hi,

Is citrix also posible? (installing a plugin, and connect?)

I will try to make contact at the and of the day... (lets say around 4 PM your time)

Regards, Henk

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 08 September 2010 at 9:43am

I've deleted my skype_name. If you still need assistance you can reach me via email or helpdesk, simply mark the message with
subject: To AndrushkaUS.

Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version