ErrorLog /dev/stderr
LogLevel warn
# LogLevel info rewrite:trace3

# need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

Timeout 256
KeepAlive On
MaxKeepAliveRequests 32
KeepAliveTimeout 8

Listen 8080
# <IfModule ssl_module>
# 	Listen 443
# </IfModule>
# <IfModule mod_gnutls.c>
# 	Listen 443
# </IfModule>

ServerTokens Prod
ServerSignature Off
Header set X-Frame-Options: "sameorigin"

LogFormat "%{%Y-%m-%dT%H:%M:%S%z}t %h \"%r\" %>s" neat
CustomLog /dev/stdout neat

<VirtualHost *:8080>
    # TODO ssl
    # TODO sendfile ?
    DocumentRoot /koel
</VirtualHost>

<Directory />
	Options FollowSymLinks
	AllowOverride None
	Require all denied
</Directory>

AccessFileName .htaccess
<FilesMatch "^\.ht">
	Require all denied
</FilesMatch>

<Directory /koel>
    # TODO check
	AllowOverride All
	Require all granted
</Directory>

IncludeOptional conf-enabled/*.conf