-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3671ce
commit 8d0d0c5
Showing
5 changed files
with
166 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
spacewalk/config/etc/httpd/vhosts.d/spacewalk-vhost-ssl.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Template for a VirtualHost with SSL | ||
# Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf. | ||
# Files must have the .conf suffix to be loaded. | ||
# | ||
# See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints | ||
# about virtual hosts. | ||
# | ||
# This is the Apache server configuration file providing SSL support. | ||
# It contains the configuration directives to instruct the server how to | ||
# serve pages over an https connection. For detailing information about these | ||
# directives see http://httpd.apache.org/docs/2.4/mod/mod_ssl.html | ||
# | ||
# Do NOT simply read the instructions in here without understanding | ||
# what they do. They're here only as hints or reminders. If you are unsure | ||
# consult the online docs. You have been warned. | ||
# | ||
|
||
<IfDefine SSL> | ||
<IfDefine !NOSSL> | ||
|
||
## | ||
## SSL Virtual Host Context | ||
## | ||
|
||
<VirtualHost _default_:443> | ||
|
||
# General setup for the virtual host | ||
DocumentRoot "/usr/share/susemanager/www/htdocs" | ||
#ServerName www.example.com:443 | ||
#ServerAdmin webmaster@example.com | ||
ErrorLog /var/log/apache2/error_log | ||
TransferLog /var/log/apache2/access_log | ||
|
||
# SSL Engine Switch: | ||
# Enable/Disable SSL for this virtual host. | ||
SSLEngine on | ||
|
||
# OCSP Stapling: | ||
# Enable/Disable OCSP for this virtual host. | ||
SSLUseStapling on | ||
|
||
# You can use per vhost certificates if SNI is supported. | ||
SSLCertificateFile /etc/pki/tls/certs/spacewalk.crt | ||
SSLCertificateKeyFile /etc/pki/tls/private/spacewalk.key | ||
#SSLCertificateChainFile /etc/apache2/ssl.crt/vhost-example-chain.crt | ||
|
||
# Per-Server Logging: | ||
# The home of a custom SSL log file. Use this when you want a | ||
# compact non-error SSL logfile on a virtual host basis. | ||
CustomLog /var/log/apache2/ssl_request_log ssl_combined | ||
|
||
RewriteEngine on | ||
RewriteOptions inherit | ||
SSLProxyEngine on | ||
<IfModule mod_jk.c> | ||
JkMountCopy On | ||
</IfModule> | ||
</VirtualHost> | ||
|
||
</IfDefine> | ||
</IfDefine> |
55 changes: 55 additions & 0 deletions
55
spacewalk/config/etc/httpd/vhosts.d/spacewalk-vhost-ssl.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Template for a VirtualHost with SSL | ||
# Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf. | ||
# Files must have the .conf suffix to be loaded. | ||
# | ||
# See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints | ||
# about virtual hosts. | ||
# | ||
# This is the Apache server configuration file providing SSL support. | ||
# It contains the configuration directives to instruct the server how to | ||
# serve pages over an https connection. For detailing information about these | ||
# directives see http://httpd.apache.org/docs/2.4/mod/mod_ssl.html | ||
# | ||
# Do NOT simply read the instructions in here without understanding | ||
# what they do. They're here only as hints or reminders. If you are unsure | ||
# consult the online docs. You have been warned. | ||
# | ||
|
||
<IfDefine SSL> | ||
<IfDefine !NOSSL> | ||
|
||
## | ||
## SSL Virtual Host Context | ||
## | ||
|
||
<VirtualHost _default_:443> | ||
|
||
# General setup for the virtual host | ||
DocumentRoot "/usr/share/susemanager/www/htdocs" | ||
#ServerName www.example.com:443 | ||
#ServerAdmin webmaster@example.com | ||
ErrorLog /var/log/apache2/error_log | ||
TransferLog /var/log/apache2/access_log | ||
|
||
# SSL Engine Switch: | ||
# Enable/Disable SSL for this virtual host. | ||
SSLEngine on | ||
|
||
# OCSP Stapling: | ||
# Enable/Disable OCSP for this virtual host. | ||
SSLUseStapling on | ||
|
||
# You can use per vhost certificates if SNI is supported. | ||
SSLCertificateFile /etc/apache2/ssl.crt/vhost-example.crt | ||
SSLCertificateKeyFile /etc/apache2/ssl.key/vhost-example.key | ||
#SSLCertificateChainFile /etc/apache2/ssl.crt/vhost-example-chain.crt | ||
|
||
# Per-Server Logging: | ||
# The home of a custom SSL log file. Use this when you want a | ||
# compact non-error SSL logfile on a virtual host basis. | ||
CustomLog /var/log/apache2/ssl_request_log ssl_combined | ||
|
||
</VirtualHost> | ||
|
||
</IfDefine> | ||
</IfDefine> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters