| 1 |
<VirtualHost *:${RENEGOTIATE_SERVER_PORT}> |
| 2 |
# The ServerName directive sets the request scheme, hostname and port that |
| 3 |
# the server uses to identify itself. This is used when creating |
| 4 |
# redirection URLs. In the context of virtual hosts, the ServerName |
| 5 |
# specifies what hostname must appear in the request's Host: header to |
| 6 |
# match this virtual host. For the default virtual host (this file) this |
| 7 |
# value is not decisive as it is used as a last resort host regardless. |
| 8 |
# However, you must set it for any further virtual host explicitly. |
| 9 |
ServerName localhost |
| 10 |
|
| 11 |
ServerAdmin webmaster@localhost |
| 12 |
DocumentRoot ${APACHE_SERVER_ROOT}/www/html |
| 13 |
|
| 14 |
ErrorLog ${APACHE_LOG_DIR}/error.log |
| 15 |
CustomLog ${APACHE_LOG_DIR}/access.log combined |
| 16 |
|
| 17 |
# SSL Engine Switch: |
| 18 |
# Enable/Disable SSL for this virtual host. |
| 19 |
SSLEngine on |
| 20 |
|
| 21 |
SSLCertificateFile ${APACHE_CERT_DIR}/apache_server_cert.pem |
| 22 |
SSLCertificateKeyFile ${APACHE_CERT_DIR}/apache_server_key.pem |
| 23 |
|
| 24 |
# Certificate Authority (CA): |
| 25 |
# Set the CA certificate verification path where to find CA |
| 26 |
# certificates for client authentication or alternatively one |
| 27 |
# huge file containing all of them (file must be PEM encoded) |
| 28 |
# Note: Inside SSLCACertificatePath you need hash symlinks |
| 29 |
# to point to the certificate files. Use the provided |
| 30 |
# Makefile to update the hash symlinks after changes. |
| 31 |
SSLCACertificateFile ${APACHE_CERT_DIR}/apache_client_cert.pem |
| 32 |
|
| 33 |
SSLProtocol -ALL +TLSv1.2 |
| 34 |
SSLHonorCipherOrder On |
| 35 |
SSLCipherSuite HIGH:!aNULL:!MD5 |
| 36 |
SSLCompression Off |
| 37 |
SSLInsecureRenegotiation Off |
| 38 |
|
| 39 |
Alias /change_cipher_suite ${APACHE_SERVER_ROOT}/www/change_cipher_suite |
| 40 |
<Directory ${APACHE_SERVER_ROOT}/www/change_cipher_suite> |
| 41 |
Require all granted |
| 42 |
SSLCipherSuite AES128-SHA |
| 43 |
</Directory> |
| 44 |
|
| 45 |
Alias /mutual_auth ${APACHE_SERVER_ROOT}/www/mutual_auth |
| 46 |
<Directory ${APACHE_SERVER_ROOT}/www/mutual_auth> |
| 47 |
Require all granted |
| 48 |
SSLVerifyClient require |
| 49 |
SSLVerifyDepth 10 |
| 50 |
</Directory> |
| 51 |
|
| 52 |
</VirtualHost> |
| 53 |
|
| 54 |
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet |