User @HTTPD_USER@

ServerName @SERVER_NAME@
ServerRoot "@SERVER_DIR@"

Include "conf/modules.conf"

DocumentRoot "@SERVER_DIR@/htdocs"

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %k" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    CustomLog "logs/access_log" combined
    
</IfModule>

Listen @HTTP_PORT@
Listen @HTTPS_PORT@

SSLCertificateFile conf/ssl/not-forbidden.org_cert.pem
SSLCertificateKeyFile conf/ssl/cert.pkey

# Insert our test specific configuration before the first vhost,
# so that its vhosts can be the default one. This is relevant in
# certain behaviours, such as protocol selection during SSL ALPN 
# negotiation.
#
Include "conf/test.conf"

RequestReadTimeout header=10 body=10

<IfModule deflate_module>
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css 
</IfModule>
<IfModule brotli_module>
  AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css
</IfModule>

<VirtualHost *:@HTTP_PORT@>
    ServerName not-forbidden.org
    ServerAlias www.not-forbidden.org
    
    DocumentRoot "@SERVER_DIR@/htdocs"
</VirtualHost>

<VirtualHost *:@HTTPS_PORT@>
    ServerName not-forbidden.org
    ServerAlias www.not-forbidden.org
    
    DocumentRoot "@SERVER_DIR@/htdocs"
    
    SSLEngine on
</VirtualHost>

<Directory "@SERVER_DIR@/htdocs/cgi">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted

    AddHandler cgi-script .py
    AddHandler cgi-script .cgi
    Options +ExecCGI
</Directory>


