Directory-browsing
am 22.12.2007 00:30:10 von tommy
Hi,
im running an Apache 2.2 server on WinXP Home and I have a directory
with some files and directories and without a indexfile. Now im looking
for a possibility to show first the directories and then the files both
ordered by name. It has to be dynamic because the files and directories
very often are changed.
I hope someone understands my problem and knows a way to help
Tommy
Re: Directory-browsing
am 22.12.2007 00:41:55 von Brendan Gillatt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tommy wrote:
> Hi,
> im running an Apache 2.2 server on WinXP Home and I have a directory
> with some files and directories and without a indexfile. Now im looking
> for a possibility to show first the directories and then the files both
> ordered by name. It has to be dynamic because the files and directories
> very often are changed.
>
> I hope someone understands my problem and knows a way to help
>
> Tommy
I don't think ordering as windows does (which is what I'm guessing you're
trying to emulate) is possible with standard Apache indexes. I suggest
you look for a PHP script to do a similar job. Hotscripts is a good place
to start.
- --
Brendan Gillatt
brendan {at} brendangillatt {dot} co {dot} uk
http://www.brendangillatt.co.uk
PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBACD7433
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
iD8DBQFHbE9DkA9dCbrNdDMRAvJlAJ0ffmqPCEB53cF+P6GwizXoAe/mcwCg 301e
MHvSfsWiW0EUf2yFiOgyurY=
=gmj+
-----END PGP SIGNATURE-----
Re: Directory-browsing
am 26.12.2007 18:13:07 von Brendan Gillatt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Brendan Gillatt wrote:
> Tommy wrote:
>> Hi,
>> im running an Apache 2.2 server on WinXP Home and I have a directory
>> with some files and directories and without a indexfile. Now im looking
>> for a possibility to show first the directories and then the files both
>> ordered by name. It has to be dynamic because the files and directories
>> very often are changed.
>
>> I hope someone understands my problem and knows a way to help
>
>> Tommy
>
> I don't think ordering as windows does (which is what I'm guessing you're
> trying to emulate) is possible with standard Apache indexes. I suggest
> you look for a PHP script to do a similar job. Hotscripts is a good place
> to start.
>
Actually, I take that back! You can if you run Apache version 2 or above.
Use
IndexOptions +FancyIndexing +FoldersFirst
In your httpd.conf file. Sorry if I mislead you.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
iD8DBQFHcoujkA9dCbrNdDMRAj2rAJwIAxeb4ChGfjfhwMwxSa21iKS8dgCg 5Utc
O+N0+X4t5JK9pj8QA20wBsU=
=RsVs
-----END PGP SIGNATURE-----