LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-18-2011, 07:08 AM   #1
t3ch
LQ Newbie
 
Registered: Jun 2005
Location: Denmark
Distribution: Debian 5
Posts: 23

Rep: Reputation: 2
-Indexes (directory browsing) Apache


Hi all,

I have a lot virtual hosts running on Apache.
Directory browsing is enabled on every single vhost (by default), and I want to disable this globally.
Been searching and struggling with this for some time now, but can't seem to get it right.

I have tried following in my apache2.conf
Code:
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
</Directory>
Also tried following in /sites-available/default
(/etc/apache2/sites-enabled/)
Code:
<Directory />
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
</Directory>
I know I can throw "Options -Indexes" on every single vhost, but it must be possible to do this globally.

What am I doing wrong?
 
Old 01-18-2011, 09:13 AM   #2
avarus
Member
 
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 33
If you really want it disabled globally (as opposed to just being off by default) you could remove the autoindex module from the server.

Otherwise you really do need to do it per VHost, AFAIK.

TIM
 
1 members found this post helpful.
Old 01-20-2011, 02:21 AM   #3
t3ch
LQ Newbie
 
Registered: Jun 2005
Location: Denmark
Distribution: Debian 5
Posts: 23

Original Poster
Rep: Reputation: 2
Guess you're right Larry, as I haven't been able to find other solutions.
I'll just edit every vhost.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 10.2 Apache 2.2.3 - directory browsing not working paulikus SUSE / openSUSE 7 10-15-2009 05:11 PM
Apache indexes with thumbnails babysparrow Linux - Server 2 10-14-2006 07:33 PM
Indexes in Apache 1.3.34 rustyz82 Linux - Software 0 06-10-2006 10:16 AM
Apache: show mp3 id tags in directory browsing? wijnands Linux - Software 1 08-09-2005 07:09 AM
Disable Directory Browsing Apache bentman78 Linux - Software 2 07-09-2004 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration