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

# Permission denied: AH00099: could not create /var/run/apache2.pid
PidFile /tmp/apache2.pid

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

Timeout 128
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
FileETag None
TraceEnable off
Header always set X-Frame-Options "sameorigin"
Header set X-XSS-Protection "1; mode=block"

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 />
    AllowOverride None
    Require all denied
</Directory>

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

<Directory /koel>
    # TODO check
    Options -Indexes -Includes -FollowSymLinks +SymLinksIfOwnerMatch
    # TODO check
    AllowOverride All
    Require all granted
</Directory>

IncludeOptional conf-enabled/*.conf