You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dick Davies <ra...@hellooperator.net> on 2005/05/04 11:14:10 UTC

[users@httpd] disable DirectoryIndex

Is there a better way than 

DirectoryIndex a-highly-improbable-filename.extension

?

-- 
'I should have been a plumber.'
		-- Albert Einstein
Rasputin :: Jack of All Trades - Master of Nuns

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] disable DirectoryIndex

Posted by Dick Davies <ra...@hellooperator.net>.
* Arne Heizmann <Ar...@csr.com> [0556 12:56]:
> Dick Davies wrote:
> >
> >Thanks, but I need it for some other vhosts. Surprised there isn't a
> >DirectoryIndex off|none directive.
> 
> <Directory "/your/directory">
>     Options -Indexes
> </Directory>

Nope - that disables all indexes, I just want to turn off the special
meaning of index.html.
> 

-- 
'The pie is ready. You guys like swarms of things, right?'
		-- Bender
Rasputin :: Jack of All Trades - Master of Nuns

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] disable DirectoryIndex

Posted by Arne Heizmann <Ar...@csr.com>.
Dick Davies wrote:
> 
> Thanks, but I need it for some other vhosts. Surprised there isn't a
> DirectoryIndex off|none directive.

<Directory "/your/directory">
     Options -Indexes
</Directory>


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] disable DirectoryIndex

Posted by Dick Davies <ra...@hellooperator.net>.
* Jirka Vejrazka <ji...@gmail.com> [0538 11:38]:
> > >Is there a better way than
> > >
> > >DirectoryIndex a-highly-improbable-filename.extension
> 
>   Just disable mod_dir (comment out if dynamic, otherwise ./configure
> --disable ... & recompile).
> 
>   Make sure to comment out all DirectoryIndex directives too and run
> "apachectl configtest" before attempting to restart the Apache to
> apply new configuration.

Thanks, but I need it for some other vhosts.
 
Surprised there isn't a DirectoryIndex off|none

directive.

-- 
'Everybody's a jerk. You, me, this jerk.'
		-- Bender
Rasputin :: Jack of All Trades - Master of Nuns

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] disable DirectoryIndex

Posted by Jirka Vejrazka <ji...@gmail.com>.
> >Is there a better way than
> >
> >DirectoryIndex a-highly-improbable-filename.extension

  Just disable mod_dir (comment out if dynamic, otherwise ./configure
--disable ... & recompile).

  Make sure to comment out all DirectoryIndex directives too and run
"apachectl configtest" before attempting to restart the Apache to
apply new configuration.

  You'll lose all "display directory contents" functionality.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] disable DirectoryIndex

Posted by Patrick Donker <li...@webpagina.nu>.
Dick Davies wrote:

>Is there a better way than 
>
>DirectoryIndex a-highly-improbable-filename.extension
>
>?
>
>  
>
Depends on what you want to achieve

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org