[Linux-disciples] Re: Directory index propagates downward
Adam Kessel
linux-disciples@bostoncoop.net
Fri, 24 Oct 2003 08:50:03 -0700
--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Fri, Oct 24, 2003 at 08:45:42AM -0400, Brian Cooke wrote:
> > <Directory />
> > DirectoryIndex /cgi-bin/blosxom
> > </Directory>
> <Directory "/var/www">
> DirectoryIndex /cgi-bin/blosxom
> </Directory>
Right: the <Directory> directive in httpd.conf points to a filesystem
location, not a URL. So you would never have <Directory />, unless you
were literally talking about "/". (if you see <Directory /> in
httpd.conf, that's because it is setting restrictive permissions by
default for the entire filesystem).
I think my approach to this issue would not be to use DirectoryIndex at
all, but rather redirect/rewrite a request for ^/$ to /blosxom. i.e.:
<Directory /var/www/>
RewriteEngine On
RewriteRule ^$ /blosxom
=20
[...]
</Directory>
--=20
Adam Kessel
http://bostoncoop.net/adam
--BOKacYhQ+x31HxR3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/mUoqdTf3ZklQ6qYRAg4pAKCDdUod5qguII+5jai8a0GwxSHCygCeNKd2
q4GLhylsYhjr1Nv3AShrSf4=
=fHUA
-----END PGP SIGNATURE-----
--BOKacYhQ+x31HxR3--