This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Unmangled flag
Author
Message |
Cristian_P
Newbie


Joined: 16 September 2011
Location: United Kingdom
Posts: 3
Posted: 26 September 2011 at 6:40am

Hi,
I am using Isapi rewrite 2 (full version). I am trying to
log the original Un-mangled URL.

I have added the U flag to all rewrite rules and it works
for few of them.

I found that the U flag does not work for the URLS that
are being mapped to a war file. (the unmangled urls is
not logged when the AJP connector is used).

Is there anything that I am missing? What can I do to
make it work for all rewrite rules?

Any help will be greatly appreciated.

Cristian




Edited by Cristian_P - 26 September 2011 at 6:41am


__________________
><))))@) (@(((((><
Back to Top Visit Cristian_P's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 26 September 2011 at 8:50am

I believe it's this pre-processing by AJP that causes problems.
Do you not get anything in the log or it's just the wrong record there? If it's the latter, what is it you get through AJP connector?

__________________
Regards,
Anton
Back to Top
 
Cristian_P
Newbie


Joined: 16 September 2011
Location: United Kingdom
Posts: 3
Posted: 26 September 2011 at 9:30am

I get the response back from tomcat through the AJP
connector.

This is what is happening:

when I have:

RewriteRule ^/b      /c [I,L,U]

everything is fine, the U flag works and I get the /b
logged in the IIS logs.

when I have:

RewriteRule ^/b      /servletName/c [I,L,U]

the U flag does not work and I get /servletName/c logged
in the ISS logs instead of /b

Cristian


        Edited by Cristian_P - 26 September 2011 at 9:30am


        __________________
        ><))))@) (@(((((><
        Back to Top Visit Cristian_P's Homepage
         
        Anton
        Admin Group


        Joined: 30 January 2007
        Location: Ukraine
        Posts: 10519
        Posted: 26 September 2011 at 9:36am

        Unfortunately, I don't think we'll be able to overcome this hurdle. As AJP acts as a middleman, it gets into the logs.

        __________________
        Regards,
        Anton
        Back to Top
         
        Cristian_P
        Newbie


        Joined: 16 September 2011
        Location: United Kingdom
        Posts: 3
        Posted: 29 September 2011 at 6:06am

        Hi Anton,
        I have managed to log the URLs that go to the Servlet(by
        doing it inside the Java code).

        So far so good, I have the URls that go to the servlet
        logged in a separate file and the URLs that go to ASP
        logged in the IIS logs(after adding the U flag).

        The problem I have now is that I can not distinguish the
        unmangled url log entries from the other log entries in
        the IIS logs. I really need to be able to extract only
        these log entries.

        Are you aware of any solution to this? Is there any way
        in version 2 to make ISAPI_Rewrite log the unmangled urls
        in a separate file?


        Please help!
        Cristian

        __________________
        ><))))@) (@(((((><
        Back to Top Visit Cristian_P's Homepage
         
        Anton
        Admin Group


        Joined: 30 January 2007
        Location: Ukraine
        Posts: 10519
        Posted: 29 September 2011 at 7:06am

        "Is there any way in version 2 to make ISAPI_Rewrite log the unmangled urls in a separate file?"
        - unfortunately, it's not possible. The URLs are logged into the IIS log only.
        You should consider composing some script that will distinguish unmangled URLs.

        __________________
        Regards,
        Anton
        Back to Top
         

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

        Printable version Printable version