|
1 # Note: all lines following a # debconf line are managed |
|
2 # by debconf. If you want to take control, just remove the |
|
3 # # debconf line. |
|
4 |
|
5 <VirtualHost *:80> |
|
6 # debconf: ServerAdmin {{serveradmin}} |
|
7 ServerAdmin webmaster@example.com |
|
8 # debconf: ServerName {{servername}} |
|
9 ServerName www.example.com |
|
10 # debconf: Redirect permanent / https://{{servername}}/ |
|
11 Redirect permanent / https://www.example.com/ |
|
12 </VirtualHost> |
|
13 |
|
14 <IfModule mod_ssl.c> |
|
15 <VirtualHost _default_:443> |
|
16 |
|
17 # debconf: ServerAdmin {{serveradmin}} |
|
18 ServerAdmin webmaster@example.com |
|
19 # debconf: ServerName {{servername}} |
|
20 ServerName www.example.com |
|
21 |
|
22 DocumentRoot /srv/www/littlebird/TrustCenter/public |
|
23 <Directory /srv/www/littlebird/TrustCenter/public> |
|
24 RewriteEngine On |
|
25 RewriteCond %{REQUEST_FILENAME} -s [OR] |
|
26 RewriteCond %{REQUEST_FILENAME} -l [OR] |
|
27 RewriteCond %{REQUEST_FILENAME} -d |
|
28 RewriteRule ^.*$ - [NC,L] |
|
29 RewriteRule ^.*$ index.php [NC,L] |
|
30 AllowOverride All |
|
31 Order allow,deny |
|
32 allow from all |
|
33 </Directory> |
|
34 |
|
35 SSLEngine on |
|
36 # debconf: SSLCertificateFile {{crt}} |
|
37 SSLCertificateFile /etc/ssl/certs/www.example.com-crt.pem |
|
38 # debconf: SSLCertificateKeyFile {{key}} |
|
39 SSLCertificateKeyFile /etc/ssl/key/www.example.com-key.pem |
|
40 |
|
41 SSLOptions +ExportCertData |
|
42 |
|
43 SSLVerifyClient require |
|
44 SSLVerifyDepth 2 |
|
45 SSLCACertificateFile /srv/www/littlebird/CA/certs/Trustcenter_CA_LB.pem |
|
46 SSLCADNRequestFile /srv/www/littlebird/CA/certs/Trustcenter_CA.pem |
|
47 <Location /css> |
|
48 SSLVerifyClient none |
|
49 </Location> |
|
50 <Location /js> |
|
51 SSLVerifyClient none |
|
52 </Location> |
|
53 <Location /images> |
|
54 SSLVerifyClient none |
|
55 </Location> |
|
56 |
|
57 LogLevel warn |
|
58 # debconf: ErrorLog ${APACHE_LOG_DIR}/{{servername}}/error.log |
|
59 ErrorLog ${APACHE_LOG_DIR}/www.example.com/error.log |
|
60 # debconf: CustomLog ${APACHE_LOG_DIR}/{{servername}}/access.log combined |
|
61 CustomLog ${APACHE_LOG_DIR}/www.example.com/access.log combined |
|
62 </VirtualHost> |
|
63 </IfModule> |