httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S.A. Birl" <>
Subject [users@httpd] Problem with mod_rewrite proxy for .asp DirectoryIndex
Date Fri, 15 May 2009 15:34:09 GMT
Hello all:

Apache 2.2.4   RHEL4

I have the following 4 rules:
Options +ExecCGI +FollowSymLinks +Includes +Indexes +MultiViews -SymLinksIfOwnerMatch
DirectoryIndex  index.shtml index.shtm index.html default.htm default.asp index.asp index.htm
default.html default.aspx home.htm home.html index.cgi

# proxy directives for .ASP files
RewriteRule      (.*.asp*)$$1  [Proxy,NoSubReq]
ProxyPassReverse / 

It works great for the most part, proxying the ASP requests over my
IIS server, EXPECT when the ASP file is in the DirectoryIndex.

With NoSubReq

1) If I browse to  I get the ASP source

2) If I browse to, it proxies
   like it should

Without NoSubReq

3) If I browse to  mod_rewrite tries to proxy  as -- giving back a proper 404

I tried changing to NoSubReq to DPI, but Apache configtest complained
that DPI was invalid as a RewriteRule flag

I tried
RewriteCond ! %{IS_SUBREQ}
RewriteRule      (.*.asp*)$$1  [Proxy]
ProxyPassReverse / 

But that failed to pass to proxy any ASP requests.

The question is, how I fix #1 and retain #2 at the same time?

 S.A. Birl

Please do not CC me responses to my own posts. I'll read the responses
from the list.

Apache archives

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message