--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/examples/apache/littlebird-tc.conf Fri Sep 16 10:16:08 2011 +0200
@@ -0,0 +1,68 @@
+# Note: all lines following a # debconf line are managed
+# by debconf. If you want to take control, just remove the
+# # debconf line.
+<IfModule mod_ssl.c>
+ # debconf: {{listen}}
+ # Listen 443
+</IfModule>
+
+<VirtualHost *:80>
+ # debconf: ServerAdmin {{serveradmin}}
+ ServerAdmin webmaster@example.com
+ # debconf: ServerName {{servername}}
+ ServerName www.example.com
+ # debconf: Redirect permanent / {{serverurl}}
+ Redirect permanent / https://www.example.com/
+</VirtualHost>
+
+<IfModule mod_ssl.c>
+ # debconf: <VirtualHost _default_:{{serverport}}>
+ <VirtualHost _default_:443>
+
+ # debconf: ServerAdmin {{serveradmin}}
+ ServerAdmin webmaster@example.com
+ # debconf: ServerName {{servername}}
+ ServerName www.example.com
+
+ DocumentRoot /usr/lib/littlebird-tc/TrustCenter/public
+ <Directory /usr/lib/littlebird-tc/TrustCenter/public>
+ RewriteEngine On
+ RewriteCond %{REQUEST_FILENAME} -s [OR]
+ RewriteCond %{REQUEST_FILENAME} -l [OR]
+ RewriteCond %{REQUEST_FILENAME} -d
+ RewriteRule ^.*$ - [NC,L]
+ RewriteRule ^.*$ index.php [NC,L]
+ AllowOverride All
+ Order allow,deny
+ allow from all
+ </Directory>
+
+ SSLEngine on
+ # debconf: SSLCertificateFile {{crt}}
+ SSLCertificateFile /etc/ssl/certs/www.example.com-crt.pem
+ # debconf: SSLCertificateKeyFile {{key}}
+ SSLCertificateKeyFile /etc/ssl/key/www.example.com-key.pem
+
+ SSLOptions +ExportCertData
+
+ SSLVerifyClient require
+ SSLVerifyDepth 2
+ SSLCACertificateFile /usr/lib/littlebird-tc/CA/certs/Trustcenter_CA_LB.pem
+ SSLCADNRequestFile /usr/lib/littlebird-tc/CA/certs/Trustcenter_CA.pem
+ <Location /css>
+ SSLVerifyClient none
+ </Location>
+ <Location /js>
+ SSLVerifyClient none
+ </Location>
+ <Location /images>
+ SSLVerifyClient none
+ </Location>
+
+ LogLevel warn
+ # debconf: ErrorLog ${APACHE_LOG_DIR}/{{servername}}/error.log
+ ErrorLog ${APACHE_LOG_DIR}/www.example.com/error.log
+ # debconf: CustomLog ${APACHE_LOG_DIR}/{{servername}}/access.log combined
+ CustomLog ${APACHE_LOG_DIR}/www.example.com/access.log combined
+ </VirtualHost>
+</IfModule>