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.
#
# 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.