r/apache • u/nomoreasonable • Jun 11 '26
Support Directory Listing Not Working ?!
Hi,
I have setup a Web server in Rocky Linux 10 using httpd, and am trying to set the default page to be Directory Listingm but it does not seem to work..
Based on my findings the setting for this is the Options Indexes FollowSymLinks but that does not seem to work..
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
AuthType Basic
AuthName "VCF Depot"
AuthUserFile /var/www/html/.htpasswd
Require valid-user
</Directory>When I open the default URL Apache Test Page appears as the default..
Current configuration is as below..
<VirtualHost *:80>
DocumentRoot /var/www/html/
ServerName vcfdepot.lab
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
AuthType Basic
AuthName "VCF Depot"
AuthUserFile /var/www/html/.htpasswd
Require valid-user
</Directory>
</VirtualHost>Can anyone suggest what needs to be checked, or configured to get it working..
1
Upvotes


1
u/IdiosyncraticBond Jun 11 '26 edited Jun 11 '26
Assuming the /PROD is really directory /var/www/html/PROD on your machine...
Maybe check your Options with https://httpd.apache.org/docs/trunk/mod/core.html#options (came there from https://cwiki.apache.org/confluence/plugins/servlet/mobile?contentId=115522289#content/view/115522289 ) esp. regarding using a + in front of the keywords.
Also check if there is an index.html file in there that might prevent a directory listing
1
u/orev Jun 11 '26
What are the permissions on the PROD directory? Also could be SELinux blocking access, especially if you moved the files from somewhere else.
1
u/[deleted] Jun 12 '26
[removed] — view removed comment