httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Newbie .htaccess
Date Thu, 13 Feb 2003 10:06:46 GMT
>-----Original Message-----
>From: Bullas, John C []
>please can you explain  "ls" ( offlist if too basic)

Ah - so you're not on Unix then?

"ls" is the first command any unix/linux user learns. Allegedly it
stands for "list segments" but all it does is give you a directory
listing ("DIR" would be the equivalent under DOS).

What I was meaning was that your requirement (to have a directory
listing that excluded the actual names of the files) is quite unusual.
So much so, that it is unanticipated in terms of the functionality of
mod_autoindex. Hence you can't do what you want to do simply by
configuring .htaccess (N.B. I am not making anyx judgement of your
requirement - if you need it, that's up to you :-).

When faced with a requirement which is so unusual that it has not been
anticipated, apache has one great strength over commercial webservers -
you can view and edit the source code. Thus, you can custom-edit apache
to achieve exactly what you want. In your case, you would have to look
into src/modules/standard/mod_autoindex.c which is the source code for
the module that handles all the Indexing functions.

Obviously, you will need to have (or hire) some skill in editing C but
if all you want to do is suppress filename printing absolutely (i.e. you
don't want to create new options to switch it on and off) then that
shouldn't be too difficult.

Owen Boyle


This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message