Re: open_basedir with apache on a per-virtalhost basis?

From: Date: Mon, 04 Nov 2002 02:40:12 +0000
Subject: Re: open_basedir with apache on a per-virtalhost basis?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16711@lists.php.net to get a copy of this message
Sorry for so many of the same posts, but this was my first time ever submitting to a news group, and I kept getting emails saying that I needed to validate my email address... oops I finally figured out how to setup the open_basedir in windows! yay :) For people who want to know, or for people that would care to add to this, here is what I found: <Location /> php_admin_value open_basedir /www/ </Location> Is that all I should need in each virtual host block, or are there more settings I should add to make php more secure? Thanks, Luke! "Luke" <lukeh@jetstream.net> wrote in message news:20021103230908.10040.qmail@pb1.pair.com... > Does anyone know how to set the open_basedir in Apache 1.3x running on win2k > on a per-virtual host basis? I've been looking for hours and I haven't > found any information that works :( PHP is running as several SAPI modules > (maybe this is the problem, but I've read that SAPI is better than the cgi > executable..?) > > I have tried configurations like: > > <VirtualHost yourdomain.com> > DocumentRoot /www/ > ServerName test.yourdomain.com > php_admin_value user_dir "/www/yourdomain.com/" > </VitualHost> > > That gives this error when I restart apache :( > > C:\>Syntax error on line 96 of C:/apache/config/virtualhosts.conf: > php_admin_value not allowed here > > Can anyone help me? > > Thanks, > Luke! > >

« previous php.windows (#16711) next »