Apache https virtual host example:
<IfModule ssl_module>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile "/path-to-apache-ssl-folder/server.crt"
SSLCertificateKeyFile "/path-to-apache-ssl-folder/server.key"
#SSLCertificateKeyFile "/path-to-apache-ssl-folder/server.pem"
BrowserMatch "MSIE [2-5]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
Define HOST hostname.com
ServerName ${HOST}
DocumentRoot /path-to-https-document-root
ErrorLog /path-to-apache-logs-folder/${HOST}_https_error.log
CustomLog /path-to-apache-logs-folder/${HOST}_https_access.log combined
RewriteEngine On
# ...
</VirtualHost>
</IfModule>
<IfModule ssl_module>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile "/path-to-apache-ssl-folder/server.crt"
SSLCertificateKeyFile "/path-to-apache-ssl-folder/server.key"
#SSLCertificateKeyFile "/path-to-apache-ssl-folder/server.pem"
BrowserMatch "MSIE [2-5]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
Define HOST hostname.com
ServerName ${HOST}
DocumentRoot /path-to-https-document-root
ErrorLog /path-to-apache-logs-folder/${HOST}_https_error.log
CustomLog /path-to-apache-logs-folder/${HOST}_https_access.log combined
RewriteEngine On
# ...
</VirtualHost>
</IfModule>
No comments:
Post a Comment