On Fri, 9 Nov 2001, Balazs Rauznitz wrote:

> On Fri, 9 Nov 2001, Philip Mak wrote:
> 
> > On port 80, I'm running a non-mod_perl httpd.
> > On port 8001, I'm running a mod_perl httpd.
> > 
> > Port 80 is ProxyPassing to port 8001 like this:
> > RewriteRule ^/(.+)\.asp$ http://127.0.0.1:8001/$1.asp [p]
> > 
> > The httpds have different DocumentRoots however, so if I visit
> > http://mysite.com/ it will return a directory index rather than calling
> > the index.asp file.
> > 
> > My current solution is to "touch index.asp" in the port 80 DocumentRoot
> > and have "DirectoryIndex index.asp" so that it knows to ProxyPass those
> > requests. I'd have to "touch index.asp" manually for every directory,
> > though. Is there a better way around this?
> 
> How about:
> 
> RewriteRule ^(.*)/$   http://127.0.0.1:8001$1/index.asp [p]

In any case you need to double directory hierachy to allow mod_dir
handle redirects from "/dir" to "/dir/". Even without touching index.asp.

Igor Sysoev

Reply via email to