Apache Server configuration support - Directory-browsing

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > December 2007 > Directory-browsing





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Directory-browsing
Tommy

2007-12-21, 7:26 pm

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
Brendan Gillatt

2007-12-21, 7:26 pm

-----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...arch=0xBACD7433
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFHbE9DkA9dCbrNdDMRAvJlAJ0ffmqPCEB5
3cF+P6GwizXoAe/mcwCg301e
MHvSfsWiW0EUf2yFiOgyurY=
=gmj+
-----END PGP SIGNATURE-----
Brendan Gillatt

2007-12-26, 1:28 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brendan Gillatt wrote:
> Tommy wrote:
>
>
>
> 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)

iD8DBQFHcoujkA9dCbrNdDMRAj2rAJwIAxeb4ChG
fjfhwMwxSa21iKS8dgCg5Utc
O+N0+X4t5JK9pj8QA20wBsU=
=RsVs
-----END PGP SIGNATURE-----
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com