title: My Apache server is displaying a directory listing instead of serving my files -- how do I configure it properly?
body: <p>I'm using Apache 2.4 on Mac.  I want to set up a virtual host to serve up my Javascript-based (React) application.  I have created this virtual host configuration ...</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName maps.example.com
  
      Alias / /Library/WebServer/Documents/client
      &lt;Directory /Library/WebServer/Documents/client&gt;
          #
          # Possible values for the Options directive are "None", "All",
          # or any combination of:
          #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
          #
          # Note that "MultiViews" must be named *explicitly* --- "Options All"
          # doesn't give it to you.
          #
          # The Options directive is both complicated and important.  Please see
          # http://httpd.apache.org/docs/2.4/mod/core.html#options
          # for more information.
          #
          Options Indexes FollowSymLinks
  
  
          # AllowOverride controls what directives may be placed in .htaccess files.
          # It can be "All", "None", or any combination of the keywords:
          #   Options FileInfo AuthConfig Limit
          #
          AllowOverride All
  
          Options -MultiViews
          RewriteEngine On
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteRule ^ index.html [QSA,L]
  
          #
          # Controls who can get stuff from this server.
          #
          Require all granted
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>However, when I visit my local server, <a href="http://maps.example.com/" rel="nofollow noreferrer">http://maps.example.com/</a> , I just see a listing of my directory ...</p>
  
  <p><a href="https://i.stack.imgur.com/0uUNH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0uUNH.png" alt="enter image description here"></a></p>
  
  <p>I would like my browser to actually be served and attempt to reference my files.  Interestingly, when I visit</p>
  
  <pre><code>http://maps.example.com/index.html
  </code></pre>
  
  <p>I get a 404.</p>
  
  <p><b>Edit:</b> Here is my Apache config file, /etc/apache2/httpd.conf.  Note the include at the end.</p>
  
  <pre><code>#
  # DocumentRoot: The directory out of which you will serve your
  # documents. By default, all requests are taken from this directory, but
  # symbolic links and aliases may be used to point to other locations.
  #
  DocumentRoot "/Library/WebServer/Documents"
  &lt;Directory "/Library/WebServer/Documents"&gt;
      #
      # Possible values for the Options directive are "None", "All",
      # or any combination of:
      #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
      #
      # Note that "MultiViews" must be named *explicitly* --- "Options All"
      # doesn't give it to you.
      #
      # The Options directive is both complicated and important.  Please see
      # http://httpd.apache.org/docs/2.4/mod/core.html#options
      # for more information.
      #
      Options FollowSymLinks Multiviews
      MultiviewsMatch Any
  
      #
      # AllowOverride controls what directives may be placed in .htaccess files.
      # It can be "All", "None", or any combination of the keywords:
      #   AllowOverride FileInfo AuthConfig Limit
      #
      AllowOverride None
  
      #
      #
      # Controls who can get stuff from this server.
      #
      Require all granted
  &lt;/Directory&gt;
  
  #
  # DirectoryIndex: sets the file that Apache will serve if a directory
  # is requested.
  #
  &lt;IfModule dir_module&gt;
      DirectoryIndex index.html
  &lt;/IfModule&gt;
  
  #
  # The following lines prevent .htaccess and .htpasswd files from being
  # viewed by Web clients.
  #
  &lt;FilesMatch "^\.([Hh][Tt]|[Dd][Ss]_[Ss])"&gt;
      Require all denied
  &lt;/FilesMatch&gt;
  
  ...
  Include /private/etc/apache2/other/*.conf
  </code></pre>
  
  <p>The original include I posted is in /etc/apache2/other/maps.conf</p>