CustomLog "| /usr/sbin/rotatelogs /var/log/httpd/kojipkgs01.fedoraproject.org-access.log.%Y-%m-%d 86400" combined
ErrorLog "| /usr/sbin/rotatelogs /var/log/httpd/kojipkgs01.fedoraproject.org-error.log.%Y-%m-%d 86400"

Alias /packages /mnt/fedora_koji/koji/packages
Alias /toplink/packages /mnt/fedora_koji/koji/packages

<Directory /mnt/fedora_koji/koji/packages>
    Options Indexes FollowSymLinks
    IndexOptions NameWidth=* FancyIndexing
    FileETag None
    Require all granted
</Directory>

Alias /repos /mnt/fedora_koji/koji/repos

<Directory /mnt/fedora_koji/koji/repos>
    Options Indexes FollowSymLinks
    IndexOptions NameWidth=* FancyIndexing
    FileETag None
    Require all granted
</Directory>

Alias /scratch /mnt/fedora_koji/koji/scratch

<Directory /mnt/fedora_koji/koji/scratch>
    Options Indexes FollowSymLinks
    IndexOptions NameWidth=* FancyIndexing
    FileETag None
    Require all granted
</Directory>

Alias /work /mnt/fedora_koji/koji/work

<Directory /mnt/fedora_koji/koji/work>
    Options Indexes FollowSymLinks
    IndexOptions NameWidth=* FancyIndexing
    FileETag None
    Require all granted
</Directory>

Alias /mash /mnt/fedora_koji/koji/mash

<Directory /mnt/fedora_koji/koji/mash>
    Options Indexes FollowSymLinks
    IndexOptions NameWidth=* FancyIndexing
    FileETag None
    Require all granted
</Directory>

Alias /compose /mnt/fedora_koji/koji/compose

<Directory /mnt/fedora_koji/koji/compose>
    Options Indexes FollowSymLinks
    IndexOptions NameWidth=* FancyIndexing
    FileETag None
    Require all granted
</Directory>

Alias /images /mnt/fedora_koji/koji/images

<Directory /mnt/fedora_koji/koji/images>
    Options Indexes FollowSymLinks
    IndexOptions NameWidth=* FancyIndexing
    FileETag None
    Require all granted
</Directory>

Alias /rhel /mnt/fedora_koji/rhel

<Directory /mnt/fedora_koji/rhel>
    Options Indexes FollowSymLinks
    IndexOptions NameWidth=* FancyIndexing
    FileETag None
    Require all granted
</Directory>

# Set HSTS header via HTTP since it cannot be easily set in squid, which terminates HTTPS
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
