You are not logged in.

#1 2009-08-02 16:02:26

poopship21
Member
Registered: 2009-05-13
Posts: 177

apache automatically showing contents of document root [SOLVED]

i have noticed that visiting an apache host sometimes shows a directory tree of the home folder (ie /usr/local/apache2/htdocs/ or /srv/http/).  on a new installation it simply says "It worked".  renaming the index.html on a new installation and restarting the server results in the same message.  i would like to know how to get apache to show the contents of document root.
TIA

Last edited by poopship21 (2009-08-03 21:02:12)

Offline

#2 2009-08-02 21:38:22

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: apache automatically showing contents of document root [SOLVED]

Options Indexes


ᶘ ᵒᴥᵒᶅ

Offline

#3 2009-08-03 19:21:04

poopship21
Member
Registered: 2009-05-13
Posts: 177

Re: apache automatically showing contents of document root [SOLVED]

my options directive for document root looks like this:

Options Indexes FollowSymLinks

this directory contains multiple .html files and is made world executable via:

$ sudo chmod 755 htdocs/

initial navigation to document root yielded the following message:

It works!


after renaming the existing index.html in order to test the index:

$ sudo mv <document root>/index.html <document root>/index.html.old

navigation to the document root still gives:


It works!


weird huh?

Offline

#4 2009-08-03 20:21:16

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: apache automatically showing contents of document root [SOLVED]

you could try removing the index.html(.old) altogether?


ᶘ ᵒᴥᵒᶅ

Offline

#5 2009-08-03 21:01:59

poopship21
Member
Registered: 2009-05-13
Posts: 177

Re: apache automatically showing contents of document root [SOLVED]

well that worked.  thanks

Offline

Board footer

Powered by FluxBB