<VirtualHost *:80>
    DocumentRoot "/var/www/html/AVideo"
    ServerName avideo.localhost
    ServerAdmin webmaster@localhost
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    #RewriteEngine on
    #RewriteCond %{SERVER_NAME} =www.domain.com [OR]
    #RewriteCond %{SERVER_NAME} =domain.com
    #RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
    DocumentRoot "/var/www/html/AVideo"
    ServerName avideo.localhost
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    #SSLEngine on
    #SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
    #SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
</VirtualHost>
<Directory /var/www/html/AVideo/>
    Options Indexes FollowSymLinks
    XSendFile on
    XSendFilePath /var/www/html/AVideo/
    AllowOverride All
    Require all granted
    Order Allow,Deny
    Allow from All
</Directory>