/[apache]/trunk/dist/2.2/conf/vhosts.d/00_default_ssl_vhost.conf
Gentoo

Contents of /trunk/dist/2.2/conf/vhosts.d/00_default_ssl_vhost.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 165 - (show annotations) (download)
Wed Jul 11 15:53:30 2007 UTC (7 years ago) by hollow
File MIME type: text/plain
File size: 7723 byte(s)
bug #178966
1 <IfDefine SSL>
2 <IfDefine SSL_DEFAULT_VHOST>
3 <IfModule ssl_module>
4 # see bug #178966 why this is in here
5
6 # When we also provide SSL we have to listen to the HTTPS port
7 # Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
8 # Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
9 Listen 443
10
11 <VirtualHost _default_:443>
12 Include /etc/apache2/vhosts.d/default_vhost.include
13 ErrorLog /var/log/apache2/ssl_error_log
14
15 <IfModule log_config_module>
16 TransferLog /var/log/apache2/ssl_access_log
17 </IfModule>
18
19 ## SSL Engine Switch:
20 # Enable/Disable SSL for this virtual host.
21 SSLEngine on
22
23 ## SSL Cipher Suite:
24 # List the ciphers that the client is permitted to negotiate.
25 # See the mod_ssl documentation for a complete list.
26 SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
27
28 ## Server Certificate:
29 # Point SSLCertificateFile at a PEM encoded certificate. If the certificate
30 # is encrypted, then you will be prompted for a pass phrase. Note that a
31 # kill -HUP will prompt again. Keep in mind that if you have both an RSA
32 # and a DSA certificate you can configure both in parallel (to also allow
33 # the use of DSA ciphers, etc.)
34 SSLCertificateFile /etc/apache2/ssl/server.crt
35 #SSLCertificateFile /etc/apache2/ssl/server-dsa.crt
36
37 ## Server Private Key:
38 # If the key is not combined with the certificate, use this directive to
39 # point at the key file. Keep in mind that if you've both a RSA and a DSA
40 # private key you can configure both in parallel (to also allow the use of
41 # DSA ciphers, etc.)
42 SSLCertificateKeyFile /etc/apache2/ssl/server.key
43 #SSLCertificateKeyFile /etc/apache2/ssl/server-dsa.key
44
45 ## Server Certificate Chain:
46 # Point SSLCertificateChainFile at a file containing the concatenation of
47 # PEM encoded CA certificates which form the certificate chain for the
48 # server certificate. Alternatively the referenced file can be the same as
49 # SSLCertificateFile when the CA certificates are directly appended to the
50 # server certificate for convinience.
51 #SSLCertificateChainFile /etc/apache2/ssl/ca.crt
52
53 ## Certificate Authority (CA):
54 # Set the CA certificate verification path where to find CA certificates
55 # for client authentication or alternatively one huge file containing all
56 # of them (file must be PEM encoded).
57 # Note: Inside SSLCACertificatePath you need hash symlinks to point to the
58 # certificate files. Use the provided Makefile to update the hash symlinks
59 # after changes.
60 #SSLCACertificatePath /etc/apache2/ssl/ssl.crt
61 #SSLCACertificateFile /etc/apache2/ssl/ca-bundle.crt
62
63 ## Certificate Revocation Lists (CRL):
64 # Set the CA revocation path where to find CA CRLs for client authentication
65 # or alternatively one huge file containing all of them (file must be PEM
66 # encoded).
67 # Note: Inside SSLCARevocationPath you need hash symlinks to point to the
68 # certificate files. Use the provided Makefile to update the hash symlinks
69 # after changes.
70 #SSLCARevocationPath /etc/apache2/ssl/ssl.crl
71 #SSLCARevocationFile /etc/apache2/ssl/ca-bundle.crl
72
73 ## Client Authentication (Type):
74 # Client certificate verification type and depth. Types are none, optional,
75 # require and optional_no_ca. Depth is a number which specifies how deeply
76 # to verify the certificate issuer chain before deciding the certificate is
77 # not valid.
78 #SSLVerifyClient require
79 #SSLVerifyDepth 10
80
81 ## Access Control:
82 # With SSLRequire you can do per-directory access control based on arbitrary
83 # complex boolean expressions containing server variable checks and other
84 # lookup directives. The syntax is a mixture between C and Perl. See the
85 # mod_ssl documentation for more details.
86 #<Location />
87 # #SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
88 # and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
89 # and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
90 # and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
91 # and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20 ) \
92 # or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
93 #</Location>
94
95 ## SSL Engine Options:
96 # Set various options for the SSL engine.
97
98 ## FakeBasicAuth:
99 # Translate the client X.509 into a Basic Authorisation. This means that the
100 # standard Auth/DBMAuth methods can be used for access control. The user
101 # name is the `one line' version of the client's X.509 certificate.
102 # Note that no password is obtained from the user. Every entry in the user
103 # file needs this password: `xxj31ZMTZzkVA'.
104
105 ## ExportCertData:
106 # This exports two additional environment variables: SSL_CLIENT_CERT and
107 # SSL_SERVER_CERT. These contain the PEM-encoded certificates of the server
108 # (always existing) and the client (only existing when client
109 # authentication is used). This can be used to import the certificates into
110 # CGI scripts.
111
112 ## StdEnvVars:
113 # This exports the standard SSL/TLS related `SSL_*' environment variables.
114 # Per default this exportation is switched off for performance reasons,
115 # because the extraction step is an expensive operation and is usually
116 # useless for serving static content. So one usually enables the exportation
117 # for CGI and SSI requests only.
118
119 ## StrictRequire:
120 # This denies access when "SSLRequireSSL" or "SSLRequire" applied even under
121 # a "Satisfy any" situation, i.e. when it applies access is denied and no
122 # other module can change it.
123
124 ## OptRenegotiate:
125 # This enables optimized SSL connection renegotiation handling when SSL
126 # directives are used in per-directory context.
127 #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
128 <FilesMatch "\.(cgi|shtml|phtml|php)$">
129 SSLOptions +StdEnvVars
130 </FilesMatch>
131
132 <Directory "/var/www/localhost/cgi-bin">
133 SSLOptions +StdEnvVars
134 </Directory>
135
136 ## SSL Protocol Adjustments:
137 # The safe and default but still SSL/TLS standard compliant shutdown
138 # approach is that mod_ssl sends the close notify alert but doesn't wait
139 # for the close notify alert from client. When you need a different
140 # shutdown approach you can use one of the following variables:
141
142 ## ssl-unclean-shutdown:
143 # This forces an unclean shutdown when the connection is closed, i.e. no
144 # SSL close notify alert is send or allowed to received. This violates the
145 # SSL/TLS standard but is needed for some brain-dead browsers. Use this when
146 # you receive I/O errors because of the standard approach where mod_ssl
147 # sends the close notify alert.
148
149 ## ssl-accurate-shutdown:
150 # This forces an accurate shutdown when the connection is closed, i.e. a
151 # SSL close notify alert is send and mod_ssl waits for the close notify
152 # alert of the client. This is 100% SSL/TLS standard compliant, but in
153 # practice often causes hanging connections with brain-dead browsers. Use
154 # this only for browsers where you know that their SSL implementation works
155 # correctly.
156 # Notice: Most problems of broken clients are also related to the HTTP
157 # keep-alive facility, so you usually additionally want to disable
158 # keep-alive for those clients, too. Use variable "nokeepalive" for this.
159 # Similarly, one has to force some clients to use HTTP/1.0 to workaround
160 # their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
161 # "force-response-1.0" for this.
162 <IfModule setenvif_module>
163 BrowserMatch ".*MSIE.*" \
164 nokeepalive ssl-unclean-shutdown \
165 downgrade-1.0 force-response-1.0
166 </IfModule>
167
168 ## Per-Server Logging:
169 # The home of a custom SSL log file. Use this when you want a compact
170 # non-error SSL logfile on a virtual host basis.
171 <IfModule log_config_module>
172 CustomLog /var/log/apache2/ssl_request_log \
173 "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
174 </IfModule>
175 </VirtualHost>
176 </IfModule>
177 </IfDefine>
178 </IfDefine>
179
180 # vim: ts=4 filetype=apache

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20