Torsten Neuer schrieb:
>
> Andoni Ayala wrote:
> >
> > Hello!
> >
> > In a directory that not have "DirectoryIndex" archives (normaly index.html
>index.htm)
> >
> > How can i do for not index the page automatica generated by apache.?
> >
> > i�m trying with
> > remove_default_doc: index.html index.htm
> > but not works
> 3) Hack Apache mod_autoindex to include a <!--htdig_noindex-->
> or issue a <META NAME="robots" CONTENT="noindex,follow"> in
> the header of the automatically generated index.
>
> Sadly, Apache has no configuration attributes for mod_autoindex
> with which someone could do this without hacking the code.
There is legal way to do this without modifing some piece of source
code. Take a look the the 'SuppressHTMLPreamble', 'HeaderName' and
'ReadmeName' feature thats coming with the IndexOptions directive. With
this feature you can greate a more customize autogenerated index file.
When activating the 'SuppressHTMLPreamble' the apache looks for a file
called 'header'. In this file you can put valid html code like this :
-------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Language" content="de"
<META NAME="robots" CONTENT="noindex,follow">
</head>
--------
here follows the output from the auto index file..
Hope this helps :) Take a look to he apache manual
http://www.apache.org/docs/mod/mod_autoindex.html#indexoptions
with best regards
Joerg Behrens
--
Key fingerprint = 92 7D E0 A6 CF AE EC 32 14 28 EF 0D 57 2A 88 5B
----------------------------------------------------------------------
TakeNet GmbH Mobil: 0171/60 57
963
D-97080 Wuerzburg Tel: +49 931 903-2243
Alfred-Nobel-Stra�e 20 Fax: +49 931 903-3025
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.
List archives: <http://www.htdig.org/mail/menu.html>
FAQ: <http://www.htdig.org/FAQ.html>