debian/examples/apache/littlebird-tc
changeset 75 a587bc920c3d
parent 74 875e0c6a6c1c
child 76 6313170a9e13
equal deleted inserted replaced
74:875e0c6a6c1c 75:a587bc920c3d
     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 <IfModule mod_ssl.c>
       
     5     # debconf: {{listen}}
       
     6     # Listen 443
       
     7 </IfModule>
       
     8 
       
     9 <VirtualHost *:80>
       
    10     # debconf: ServerAdmin {{serveradmin}}
       
    11     ServerAdmin webmaster@example.com
       
    12     # debconf: ServerName {{servername}}
       
    13     ServerName www.example.com
       
    14     # debconf: Redirect permanent / {{serverurl}}
       
    15     Redirect permanent / https://www.example.com/
       
    16 </VirtualHost>
       
    17 
       
    18 <IfModule mod_ssl.c>
       
    19     # debconf: <VirtualHost _default_:{{serverport}}>
       
    20     <VirtualHost _default_:443>
       
    21 
       
    22         # debconf: ServerAdmin {{serveradmin}}
       
    23         ServerAdmin webmaster@example.com
       
    24         # debconf: ServerName {{servername}}
       
    25         ServerName www.example.com
       
    26 
       
    27         DocumentRoot /srv/www/littlebird/TrustCenter/public
       
    28         <Directory /srv/www/littlebird/TrustCenter/public>
       
    29             RewriteEngine On
       
    30             RewriteCond %{REQUEST_FILENAME} -s [OR]
       
    31             RewriteCond %{REQUEST_FILENAME} -l [OR]
       
    32             RewriteCond %{REQUEST_FILENAME} -d
       
    33             RewriteRule ^.*$ - [NC,L]
       
    34             RewriteRule ^.*$ index.php [NC,L]
       
    35             AllowOverride All
       
    36             Order allow,deny
       
    37             allow from all
       
    38         </Directory>
       
    39 
       
    40         SSLEngine on
       
    41         # debconf: SSLCertificateFile {{crt}}
       
    42         SSLCertificateFile /etc/ssl/certs/www.example.com-crt.pem
       
    43         # debconf: SSLCertificateKeyFile {{key}}
       
    44         SSLCertificateKeyFile /etc/ssl/key/www.example.com-key.pem
       
    45 
       
    46         SSLOptions +ExportCertData
       
    47 
       
    48         SSLVerifyClient require
       
    49         SSLVerifyDepth 2
       
    50         SSLCACertificateFile /srv/www/littlebird/CA/certs/Trustcenter_CA_LB.pem
       
    51         SSLCADNRequestFile   /srv/www/littlebird/CA/certs/Trustcenter_CA.pem
       
    52         <Location /css>
       
    53             SSLVerifyClient none
       
    54         </Location>
       
    55         <Location /js>
       
    56             SSLVerifyClient none
       
    57         </Location>
       
    58         <Location /images>
       
    59             SSLVerifyClient none
       
    60         </Location>
       
    61 
       
    62         LogLevel warn
       
    63         # debconf: ErrorLog ${APACHE_LOG_DIR}/{{servername}}/error.log
       
    64         ErrorLog ${APACHE_LOG_DIR}/www.example.com/error.log
       
    65         # debconf: CustomLog ${APACHE_LOG_DIR}/{{servername}}/access.log combined
       
    66         CustomLog ${APACHE_LOG_DIR}/www.example.com/access.log combined
       
    67     </VirtualHost>
       
    68 </IfModule>