<VirtualHost *:80>
    ServerAdmin contact@localhost
    ServerName eposter-files.stream-up.local
    DocumentRoot /var/www/html/local-e-poster-board/

    <Directory "/var/www/html/local-e-poster-board/">
      Options +Indexes
      AllowOverride all
      Order allow,deny
      Allow from all
      Require all granted
    </Directory>

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{SERVER_PORT} 80
        RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,QSA]
    </IfModule>

    ErrorLog ${APACHE_LOG_DIR}/eposters_files-error.log
    CustomLog ${APACHE_LOG_DIR}/eposters_files-access.log combined
</VirtualHost>

<VirtualHost *:443>
    SSLEngine on
    SSLCertificateFile "/etc/ssl/stream-up.local.crt"
    SSLCertificateKeyFile "/etc/ssl/stream-up.local.key"

    ServerAdmin contact@localhost
    ServerName eposter-files.stream-up.local
    DocumentRoot /var/www/html/local-e-poster-board/

    <Directory "/var/www/html/local-e-poster-board/">
      Options +Indexes
      AllowOverride all
      Order allow,deny
      Allow from all
      Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/eposters_files-error.log
    CustomLog ${APACHE_LOG_DIR}/eposters_files-access.log combined
</VirtualHost>
