added vhost examples
This commit is contained in:
@@ -6,23 +6,14 @@
|
||||
DirectoryIndex <%= @ae_dir_index %>
|
||||
ErrorLog /var/log/httpd/<%= @ae_server_name %>_ssl_error_log
|
||||
TransferLog /var/log/httpd/<%= @ae_server_name%>_ssl_transfer_log
|
||||
<% if @ae_use_access_log == true -%>
|
||||
CustomLog /var/log/httpd/<%= @ae_server_name%>_ssl_access_log common
|
||||
<% end -%>
|
||||
LogLevel <%= @ae_vhost_loglevel %>
|
||||
SSLEngine on
|
||||
SSLProtocol <%= @ae_ssl_protocols%>
|
||||
SSLCipherSuite "<%= @ae_ssl_ciphersuite%>"
|
||||
|
||||
<% if @ae_use_certbot == true -%>
|
||||
SSLCertificateFile /etc/letsencrypt/live/<%= @ae_server_name %>/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/<%= @ae_server_name %>/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/<%= @ae_server_name %>/fullchain.pem
|
||||
<% else -%>
|
||||
SSLCertificateFile <%= @ae_tls_cert_path %>/<%= @ae_ssl_vhost_cert %>
|
||||
SSLCertificateKeyFile <%= @ae_tls_key_path %>/<%= @ae_ssl_vhost_key %>
|
||||
SSLCertificateChainFile <%= @ae_tls_cert_path %>/<%= @ae_ssl_vhost_chain %>
|
||||
<% end -%>
|
||||
|
||||
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
|
||||
SSLOptions +StdEnvVars
|
||||
@@ -45,5 +36,4 @@
|
||||
|
||||
CustomLog logs/ssl_request_log \
|
||||
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
Reference in New Issue
Block a user