Page 1 of 1
indexing through directories in Apache
Posted: Sun Dec 31, 2006 8:37 am
by jyhm
I can't browse through a directory on my site folder that doesn't have an index. I used to do this on my local server in order to navigate through certain parts that I was testing, but now I can't even do this on any directory.
I just recently upgraded my OS. In so doing the OS also came with a new installation of Apache. I don't remember if I set this feature up myself or if the newer version just doesn't allow it for security purposes. Anyway for the life of me I can't remember what the method is to enable this.
Posted: Sun Dec 31, 2006 8:50 am
by feyd
Take a look at the Options directive's possible options:
http://httpd.apache.org/docs/2.2/mod/core.html#options
SOLVED
Posted: Sun Dec 31, 2006 10:40 am
by jyhm
Ok thank you for the link that helped a lot feyd. For those who want to know how to fix the problem, first I uncommented these lines.
Code: Select all
LoadModule autoindex_module libexec/httpd/mod_autoindex.so
Then on the first Directory/Options line I added
Indexes. And on the second Directory/Options line I added
+Indexes right before
'FollowSymLinks'
Code: Select all
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/Library/WebServer/Documents">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options +Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>