Changes between Version 2 and Version 3 of ApacheConfiguration


Ignore:
Timestamp:
05/07/10 14:26:44 (10 years ago)
Author:
sander
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ApacheConfiguration

    v2 v3  
    77== Configuration == 
    88 
     9Below is a sample Apache configuration. 
     10 
     11{{{ 
     12<VirtualHost *:80> 
     13        DocumentRoot /var/www/www.officeshots.org/trunk/www/app/webroot 
     14        ServerName www.officeshots.org 
     15 
     16        LogLevel warn 
     17        CustomLog /var/log/apache2/www.officeshots.org/access.log combined 
     18        ErrorLog /var/log/apache2/www.officeshots.org/error.log 
     19 
     20        # Do not serve .svn directories 
     21        RedirectMatch 404 /\\.svn(/|$) 
     22 
     23        ServerSignature On 
     24</VirtualHost> 
     25 
     26# This part provides HTTPS access. It allows registered users to log in with an 
     27# SSL client certificate that lists their e-mail address. This is *required* for 
     28# factories that attempt to connect. 
     29 
     30<IfModule mod_ssl.c> 
     31<VirtualHost _default_:443> 
     32        DocumentRoot /var/www/www.officeshots.org/trunk/www/app/webroot 
     33        ServerName www.officeshots.org 
     34 
     35        LogLevel warn 
     36        CustomLog /var/log/apache2/www.officeshots.org/access.log combined 
     37        ErrorLog /var/log/apache2/www.officeshots.org/error.log 
     38 
     39        # SSL using mod_ssl 
     40        SSLEngine On 
     41        SSLCertificateFile /etc/apache2/ssl/www.officeshots.org.cert 
     42        SSLCertificateKeyFile /root/certs/www.officeshots.org.key 
     43        SSLCACertificatePath /etc/ssl/email-certs 
     44        SSLVerifyClient require 
     45        SSLVerifyDepth 1 
     46        SSLSessionCacheTimeout 1800 
     47 
     48        <FilesMatch "\.php$"> 
     49                SSLOptions +StdEnvVars 
     50        </FilesMatch> 
     51 
     52        BrowserMatch ".*MSIE.*" \ 
     53                nokeepalive ssl-unclean-shutdown \ 
     54                downgrade-1.0 force-response-1.0 
     55 
     56        RedirectMatch 404 /\\.svn(/|$) 
     57 
     58        ServerSignature On 
     59</VirtualHost> 
     60</IfModule> 
     61}}}