The Apache server supports virtual hosts, which are multiple web hosts that run from a single Apache binary. Apache virtual hosts can be name-based or IP-based. Name-based virtual hosts share a single IP address, while IP-based virtual hosts require a different IP address for each virtual host.
Apache virtual hosts using the SSL protocol must contain the following conditions:
The following is an example of a secure (HTTPS) virtual host:
<VirtualHost 10.0.0.1:443>
DocumentRoot ".../htdocs/site1"
ServerName www.site1.net
ServerAdmin webmaster@site1.net
ErrorLog logs/covalent_error_log_site1
TransferLog logs/...
SSLEngine on
SSLCertificateFile /www.site1.net.cert
SSLCertificateKeyFile /www.site1.net.key
CustomLog logs/cipher_log_site1 \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |