--- /dev/null
+<VirtualHost *:80>
+ ServerName popcon.debian.org
+ ServerAlias popcon2.debian.org
+ ServerAdmin popcon-developers@lists.alioth.debian.org
+
+ ErrorLog /var/log/apache2/popcon.debian.org-error.log
+ CustomLog /var/log/apache2/popcon.debian.org-access.log privacy
+
+ DocumentRoot /srv/popcon.debian.org/www
+ <Directory /srv/popcon.debian.org/www>
+ Require all granted
+ </Directory>
+
+ AddDefaultCharset utf-8
+ ScriptAlias /cgi-bin /srv/popcon.debian.org/cgi-bin/
+ <Directory /srv/popcon.debian.org/cgi-bin>
+ Require all granted
+ </Directory>
+
+ RewriteEngine on
+ RewriteRule ^/src:([-a-z+.0-9]+)$ https://qa.debian.org/developer.php?popcon=$1 [R,L]
+
+ RewriteCond "%{HTTP_USER_AGENT}" !popcon-upload
+ RewriteRule ^(.*) https://popcon.debian.org$1 [R,L]
+
+ #UserDir public_popcon
+ #<IfModule mod_deflate.c>
+ # AddOutputFilterByType DEFLATE text/html text/xml
+ #</IfModule>
+
+ #<IfModule mod_fcgid.c>
+ # <Directory /home/*/public_popcon>
+ # Options +MultiViews
+ #
+ # AddHandler fcgid-script .php
+ # FCGIWrapper /usr/lib/cgi-bin/php5 .php
+ # <Files *.php>
+ # Options ExecCGI
+ # </Files>
+ # </Directory>
+ #</IfModule>
+</VirtualHost>
+
+<VirtualHost *:443>
+ ServerName popcon.debian.org
+ ServerAlias popcon2.debian.org
+ ServerAdmin popcon-developers@lists.alioth.debian.org
+
+ Use common-debian-service-ssl popcon.debian.org
+# Use common-ssl-HSTS
+ Use http-pkp-popcon.debian.org
+
+ ErrorLog /var/log/apache2/popcon.debian.org-error.log
+ CustomLog /var/log/apache2/popcon.debian.org-access.log privacyssl
+
+ DocumentRoot /srv/popcon.debian.org/www
+ <Directory /srv/popcon.debian.org/www>
+ Require all granted
+ </Directory>
+
+ AddDefaultCharset utf-8
+ ScriptAlias /cgi-bin /srv/popcon.debian.org/cgi-bin/
+ <Directory /srv/popcon.debian.org/cgi-bin>
+ Require all granted
+ </Directory>
+
+ RewriteEngine on
+ RewriteRule ^/src:([-a-z+.0-9]+)$ https://qa.debian.org/developer.php?popcon=$1 [R,L]
+</VirtualHost>
+
+# vim:set syn=apache:
--- /dev/null
+class roles::popcon {
+ ssl::service { 'popcon.debian.org':
+ notify => Exec['service apache2 reload'],
+ key => true,
+ }
+
+ include apache2::ssl
+ apache2::site { 'popcon.debian.org':
+ site => 'popcon.debian.org',
+ source => 'puppet:///modules/roles/popcon/popcon.debian.org.conf',
+ }
+}