openSUSE-release-tools/metrics/access/sample_download_o_o.conf
2021-02-08 11:23:24 +01:00

37 lines
971 B
ApacheConf

<VirtualHost *:80>
# need to point /etc/hosts to your IP to fool zypper
ServerName download.opensuse.org
DocumentRoot /srv/www/vhosts/download.opensuse.org
HostnameLookups Off
UseCanonicalName Off
CustomLog /var/log/download_access_log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \
want:%{WANT}e give:%{GIVE}e r:%{MB_REALM}e %{X-MirrorBrain-Mirror}o \
%{MB_CONTINENT_CODE}e:%{MB_COUNTRY_CODE}e ASN:%{ASN}e P:%{PFX}e \
%I %O size:%{MB_FILESIZE}e %{Range}i \
\"%{X-ZYpp-AnonymousId}i\" \"%{X-ZYpp-DistributionFlavor}i\""
<Directory "/srv/www/vhosts/download.opensuse.org">
Options Indexes FollowSymLinks
AllowOverride None
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
</VirtualHost>
# vim: syntax=apache