8aec4821dc
Change-Id: I625b45961cb15444f0f388340e6c6577f6488bcf
52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
<VirtualHost _default_:80>
|
|
ServerAdmin <%= serveradmin %>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/jenkins-error.log
|
|
|
|
# Possible values include: debug, info, notice, warn, error, crit,
|
|
# alert, emerg.
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/jenkins-access.log combined
|
|
|
|
Redirect / https://<%= site %>/
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost _default_:443>
|
|
ServerAdmin <%= serveradmin %>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/jenkins-ssl-error.log
|
|
|
|
# Possible values include: debug, info, notice, warn, error, crit,
|
|
# alert, emerg.
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/jenkins-ssl-access.log combined
|
|
|
|
# SSL Engine Switch:
|
|
# Enable/Disable SSL for this virtual host.
|
|
SSLEngine on
|
|
|
|
SSLCertificateFile <%= ssl_cert_file %>
|
|
SSLCertificateKeyFile <%= ssl_key_file %>
|
|
<% if ssl_chain_file != "" %>
|
|
SSLCertificateChainFile <%= ssl_chain_file %>
|
|
<% end %>
|
|
|
|
BrowserMatch "MSIE [2-6]" \
|
|
nokeepalive ssl-unclean-shutdown \
|
|
downgrade-1.0 force-response-1.0
|
|
# MSIE 7 and newer should be able to use keepalive
|
|
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
|
|
|
|
RewriteEngine on
|
|
RewriteCond %{HTTP_HOST} !<%= site %>
|
|
RewriteRule ^.*$ https://<%= site %>/
|
|
|
|
RewriteRule /zuul/status http://127.0.0.1:8001/status [P]
|
|
|
|
ProxyPass / http://127.0.0.1:8080/ retry=0
|
|
ProxyPassReverse / http://127.0.0.1:8080/
|
|
</VirtualHost>
|