##
<VirtualHost <%= vhost_listen %> >
- ServerAdmin debian-admin@debian.org
- ServerName ftp.ports.debian.org
+ 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 %>
- RedirectMatch "^/$" /debian-ports/
- Alias /debian-ports /srv/mirrors/debian-ports
+ ErrorLog /var/log/apache2/ftp.ports.debian.org-error.log
+ CustomLog /var/log/apache2/ftp.ports.debian.org-access.log privacy
- 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/
- <Directory /srv/mirrors/debian-ports>
- Require all granted
- IndexOptions NameWidth=* +SuppressDescription
- Options +Indexes
- Options +FollowSymLinks
- </Directory>
-</VirtualHost>
+ 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: