logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: LocationMatch partially working
Author
denimpowell



Joined: 04 Sep 2007
Posts: 2

PostPosted: Tue 04 Sep '07 19:59    Post subject: LocationMatch partially working Reply with quote

I have this strange issue that comes up using IE6 but not IE7. I have 2 virtual servers setup. Each one I have pointing at a web application residing on a remote machine. For each I have setup a LocationMatch directive that requires a valid user. This part works fine but there is a linked url that loads correctly in IE7 but not IE6. Here is the virtual host info that i have in the httpd.conf

<VirtualHost *:7070>
DocumentRoot "C:/Program Files/Apache2.2.4/htdocs/VirtHost1"
<Directory "C:/Program Files/Apache2.2.4/htdocs/VirtHost1">
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
ProxyRequests Off
ProxyPass /Switchboard http://SERVER1:7002/Switchboard
ProxyPassReverse /Switchboard http://SERVER1:7002/Switchboard
<LocationMatch /Switchboard/*>
AuthType Digest
AuthName "IncidentTrackerFull"
AuthUserFile "C:/Program Files/Apache2.2.4/security/DigestAccess"
Require valid-user
</LocationMatch>
</VirtualHost>

---------------------------
Now, for both IE6 and IE7, the first page authenticates and loads correctly with the url

http://blade1:7070/Switchboard

However on this URL is a link to another URL

http://blade1:7070/Switchboard/IncidentSwitchboard.do?action=OPEN

(edit : blade1 is the name of the machine that the apache server resides on)

IE7 loads it fine; IE6 does not. Interestingly enough, if I completely remove the LocationMatch, or if I replace the regular expression

<LocationMatch /Switchboard/*>
with
<LocationMatch /Switchboard/IncidentSwitchboard.do?action=OPEN>

then the page loads. In the error logs for the failed requests, this is what displays:

[Tue Sep 04 11:53:17 2007] [error] [client 192.168.3.185] Digest: uri mismatch - </Switchboard/IncidentSwitchboard.do> does not match request-uri </Switchboard/IncidentSwitchboard.do?action=OPEN>

Is IE6 doing something funky with that '?' (maybe applying it as a regex ? instead of the literal) ? If anyone could shed any light on what is happening in this scenario I would be very appreciative.

Thanks,
Mike
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Wed 05 Sep '07 13:43    Post subject: AuthDigestEnableQueryStringHack Reply with quote

You could try setting the AuthDigestEnableQueryStringHack environment variable, which is described in the docs here.

-tom-
Back to top
denimpowell



Joined: 04 Sep 2007
Posts: 2

PostPosted: Thu 06 Sep '07 22:37    Post subject: Reply with quote

That worked perfectly, thanks!
Back to top


Reply to topic   Topic: LocationMatch partially working View previous topic :: View next topic
Post new topic   Forum Index -> Apache