Application Request Routing (ARR) IIS 7 Spaces in URL
Asked Answered
H

2

7

I am using AAR to reverse proxy requests to a Confluence install. This works fine when the URL contains no spaces. As soon as a space is added to the URL the request returns a 404, the 404 seems to originate from IIS not the Confluence instance.

I have enable Failed Request Tracing as detailed here: http://learn.iis.net/page.aspx/488/using-failed-request-tracing-rules-to-troubleshoot-application-request-routing-arr/

On requests that return the 404 the AAR module does not seem to kick in, there is no information about it in the logs. I have tested this against pages that return 200 and I can see the rewrite works correctly.

Why is AAR not processing URLs with spaces in them? My Reverse Proxy rule matches on everything:

(.*)

And I have no conditions applied to the rule.

Hypopituitarism answered 29/9, 2010 at 23:14 Comment(1)
I had this problem with YouTrack also.Jesusitajet
C
11

You need to allow double escaping.

Go to IIS -> Pick your server node -> Request filtering -> Edit Feature Settings... -> Tick 'Allow double escaping'

This solves your problem with Confluence and spaces in URLs.

Ci answered 10/3, 2011 at 10:46 Comment(0)
E
0

You could also use the command line

%windir%\system32\inetsrv\appcmd set config "Default Web Site" -section:system.webServer/security/requestfiltering -allowDoubleEscaping:true

Ethics answered 27/4, 2011 at 20:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.