I have a user with a user.domain.com subdomain that wants to allow virtual directory listings throughout their whole subdomain. They have a .htaccess in the html root that allows the indexes to be generated for all the directories except the bottom.
I’ve searched through the apache conf for a reason for this behavior, but since I don’t know how siteworx does apache config I’m not sure what to look for. Is there any easy way to fix this behavior?
Unfortunately Options +Indexes still just shows the Apache test page at root (or, as stated before, if I put an index.html it will display that properly).
Still nothing. I tried adding it in the VHost block and also in the <Directory> block. I don’t remember if the latter is valid in apache conf syntax but in any case neither worked.
#
# Disable autoindex for the root directory, and present a
# default Welcome page if no other index page is present.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
The previous block was disallowing indexes and showing the apache page so I commented it out.
After taking that out ‘Indexes’ was the defualt so I edited the following:
I have a client that runs a quarterly security scan on our server since they have some compliance issues they must adhere to. They found the following directory indexes:
/var/www/manual/images/
/var/www/icons/
These are both not security threats by any means but I’m trying to figure out how I can turn off indexing for them and can’t seem to have any luck. What would I need to change in the httpd.conf file to turn off indexing for these two directories? I’d prefer to turn off any directory indexing on the server unless an .htaccess file overrides it.
EDIT: I figured it out. I found where it was allowing indexing to those directories in the httpd.conf. Not sure how I didn’t see that the first time I looked.