Re: Re: ProxyPass and DirectoryIndex
On Fri, Nov 09, 2001 at 02:17:44PM -0500, Philip Mak wrote: RewriteRule ^(.*)/$ http://127.0.0.1:8001$1/index.asp [p] That looks like it will ProxyPass every directory to the mod_perl enabled httpd. It would make index.html not work anymore, though. I think the optimal solution would: - display index.html if it is present in the non-mod_perl web directory - else display index.asp if it is present in the mod_perl web directory - else display a directory listing (if Options +Indexes is on) I'm thinking that this is not possible, at least not without having to make some really ugly configuration hack? How about this: Directory /path/to/static/files/ RewriteCond%{REQUEST_FILENAME} -d RewriteCond%{REQUEST_FILENAME}index.html!-f RewriteCond/path/to/dynamic/files%{REQUEST_URI}/index.asp -f RewriteRule^(.*)$ http://127.0.0.1:8001$1/index.asp [P] /Directory -- Andy [EMAIL PROTECTED] - http://anime.mikomi.org/ - Community Anime Reviews And the moral of this message is... To a Californian, all New Yorkers are cold; even in heat they rarely go above fifty-eight degrees. If you collapse on a street in New York, plan to spend a few days there. -- From East vs. West: The War Between the Coasts
Re: Re: Do virtual hosts need their own servers?
On Mon, Aug 20, 2001 at 01:40:30PM +0800, Stas Bekman wrote: On Thu, 16 Aug 2001, Andy Turner wrote: On Wed, Aug 15, 2001 at 12:54:58PM -0400, Philip Mak wrote: 1. A hacker with access to a virtual host on a mod_perl Apache can steal the Apache::DBI database handles of the other virtual hosts on that Apache. suexec/cgiwrap won't work in mod_perl. The simplest answer is to just not use Apache::DBI. Just use DBI normally. The only draw back is that you don't cache database handles this way. But in many configurations that isn't an issue. Huh? You can read anything from the memory once you are running in the same process, be it Apache::DBI, DBI or your own raw access module. Ahh, I was assuming a DBI handle lexically scoped to the handler subroutine, sorry about the confusion. So long as the handle goes away with the connection you're okay. -- Andy [EMAIL PROTECTED] - http://anime.mikomi.org/ - Community Anime Reviews Thus, though we have heard of stupid haste in war, cleverness has never been seen associated with long delays. -- Sun Tzu, The Art of War