<VirtualHost *:80>
  ServerName default

  ## Vhost docroot
  DocumentRoot "/var/www/html"

<% if @api_workers %> <% @api_workers.each do |worker| -%>
  # WSGI configuration for worker <%= worker %>
  WSGIDaemonProcess dlrn-<%= worker -%> group=<%= worker -%> processes=5 threads=1 user=<%= worker %>
  WSGIScriptAlias /api-<%= worker -%> "/home/<%= worker -%>/api/dlrn-api-<%= worker -%>.wsgi"

  <Location "/api-<%= worker -%>">
    Require all granted
    SetEnv CONFIG_FILE /home/<%= worker -%>/api/dlrn-api-<%= worker -%>.cfg
    WSGIProcessGroup dlrn-<%= worker %>
  </Location>

<% end -%> <% end %>
  ## Logging
  ErrorLog "/var/log/httpd/<%= @web_domain %>_error.log"
  ServerSignature Off
  CustomLog "/var/log/httpd/<%= @web_domain %>_access.log" combined

</VirtualHost>


<VirtualHost *:80>
  ServerName default

  ## Vhost docroot
  DocumentRoot "/var/www/html"

  ## Directories, there should at least be a declaration for /var/www/html

  <Directory "/var/www/html">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride FileInfo
    Require all granted
  </Directory>

<% if @api_workers %> <% @api_workers.each do |worker| -%>
  # WSGI configuration for worker <%= worker %>
  WSGIDaemonProcess dlrn-<%= worker -%> group=<%= worker -%> processes=5 threads=1 user=<%= worker %>
  WSGIScriptAlias /api-<%= worker -%> "/home/<%= worker -%>/api/dlrn-api-<%= worker -%>.wsgi"

  <Location "/api-<%= worker -%>">
    Require all granted
    SetEnv CONFIG_FILE /home/<%= worker -%>/api/dlrn-api-<%= worker -%>.cfg
    WSGIProcessGroup dlrn-<%= worker %>
  </Location>

<% end -%> <% end %>
  ## Logging
  ErrorLog "/var/log/httpd/<%= @web_domain %>_error.log"
  ServerSignature Off
  CustomLog "/var/log/httpd/<%= @web_domain %>_access.log" combined

</VirtualHost>


Fix Directory entry for /var/www/html in the port 80 config
Fix Directory entry for /var/www/html in the port 80 config

This entry was missing, so it was not possible to list directories
on port 80.

Change-Id: I3f1a2a3a16edf9ad4b965ce1d1bd3875eab7b4f4
