• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

configuring apache

ojai00

Diamond Member
hi all. i'm trying to configure the apache httpd.conf file to not serve up a directory listing. it's currently showing as:

#
# Controls who can get stuff from this server.
#
Order deny,allow
deny from all

</Directory>

When it's set like that, i'll be able to view the index.html page, but nothing after that. If I set it to "allow from all", then everyone will be able to see the directory files. Can anyone show me how to set it so that it will show "forbidden" when the user tries to type in a directory into his/her web browser, but will still serve up HTML pages? Sounds kinda confusing, sorry 😱 Thanks in advance.
 
You just need to add this:

Options -Indexes

That should disable the indexing of a directory and show the forbidden message when an index file is not found. And you'll need to put it back to "allow from all".
 
Thanks guys. Worked like a charm! I tested it and it just won't serve up a directory if you don't specify an HTML file in that directory...am I right to say that? Sorry for being such an Apache noob 😱
 
Back
Top