##
<VirtualHost <%= vhost_listen %> >
- ServerAdmin debian-admin@debian.org
- ServerName ftp.ports.debian.org
-
-
- ErrorLog /var/log/apache2/ftp.ports.debian.org-error.log
- LogLevel warn
- CustomLog /var/log/apache2/ftp.ports.debian.org-access.log privacy
-
- RedirectMatch "^/$" /debian-ports/
-
- Alias /debian-ports /srv/mirrors/debian-ports
- <Directory /srv/mirrors/debian-ports>
- Require all granted
- IndexOptions NameWidth=* +SuppressDescription
- Options +Indexes
- Options +FollowSymLinks
- </Directory>
- <Directory /srv/mirrors/debian-ports/pool>
- <Files ?*>
- Header set Cache-Control "public, max-age=2592000"
- </Files>
- </Directory>
- <Directory /srv/mirrors/debian-ports/dists>
- <Files ?*>
- Header set Cache-Control "public, max-age=120"
- </Files>
- </Directory>
- <DirectoryMatch "^/srv/mirrors/debian-ports/dists/.*/by-hash">
- <Files ?*>
- Header set Cache-Control "public, max-age=2592000"
- </Files>
- </DirectoryMatch>
-
- Alias /debian-ports-cd /srv/mirrors/debian-ports-cd
- <Directory /srv/mirrors/debian-ports-cd>
- Require all granted
- IndexOptions NameWidth=* +SuppressDescription
- Options +Indexes
- Options +FollowSymLinks
- </Directory>
+ ServerAdmin debian-admin@debian.org
+ ServerName ftp.ports.debian.org
+ <% if scope.function_onion_global_service_hostname(['ftp.ports.debian.org']) -%>
+ ServerAlias <%= scope.function_onion_global_service_hostname(['ftp.ports.debian.org']) %>
+ <% end %>
+
+ ErrorLog /var/log/apache2/ftp.ports.debian.org-error.log
+ CustomLog /var/log/apache2/ftp.ports.debian.org-access.log privacy
+
+ RedirectMatch "^/$" /debian-ports/
+
+ Alias /debian-ports /srv/mirrors/debian-ports
+ Use ftp-archive /srv/mirrors/debian-ports
+
+ Alias /debian-ports-cd /srv/mirrors/debian-ports-cd
+ <Directory /srv/mirrors/debian-ports-cd>
+ Require all granted
+ IndexOptions NameWidth=*
+ Options +Indexes
+ Options +FollowSymLinks
+ </Directory>
+
+ <IfModule mod_userdir.c>
+ UserDir disabled
+ </IfModule>
</VirtualHost>
-
-
+# vim:set syn=apache: