How to enable directory listing in apache web server : <p>I am not able to enable directory listing in my apache web server. I have tried various solutions posted but not working. I just freshly installed httpd 2.4.6 and enabled https using ssl.conf under /etc/httpd/conf.d/ssl.conf dir and trying to access <a href="https://server.example.com/" rel="noreferrer">https://server.example.com/</a> but this is not listing the dir. These are the config in ssl.conf</p>

<pre><code>DocumentRoot "/home/userx/Downloads/"
ServerName server.example.com:443
</code></pre>

<p>Below is what it has in ssl.conf under the VirtualHost element. Files and the first Directory elements were already there when I installed, I just added  Directory for "/home/userx/Downloads". I want to browse the contents of /home/userx/Downloads when I access the URL <a href="https://server.example.com/" rel="noreferrer">https://server.example.com/</a>. What am I missing here ?</p>

<pre><code>&lt;Files ~ "\.(cgi|shtml|phtml|php3?)$"&gt;
    SSLOptions +StdEnvVars
&lt;/Files&gt;
&lt;Directory "/var/www/cgi-bin"&gt;
    SSLOptions +StdEnvVars
&lt;/Directory&gt;
&lt;Directory "/home/userx/Downloads"&gt;
  Options +Indexes
  AllowOverride all
&lt;/Directory&gt;
</code></pre>
