Disable Apache port 80
Currently, Apache ports.conf file is not being configured by this charm. This patch changes the ports.conf default file with another one that does not open port 80 on SSL environments. Change-Id: I35ba6bb31af6d795d02d90d0d127ac5c6c129d0f Closes-bug: #1845665
This commit is contained in:
parent
fca036ba24
commit
92e75b5aad
@ -207,6 +207,7 @@ else:
|
||||
|
||||
|
||||
HAPROXY_CONF = '/etc/haproxy/haproxy.cfg'
|
||||
APACHE_PORTS_CONF = '/etc/apache2/ports.conf'
|
||||
APACHE_CONF = '/etc/apache2/sites-available/openstack_https_frontend'
|
||||
APACHE_24_CONF = '/etc/apache2/sites-available/openstack_https_frontend.conf'
|
||||
MEMCACHED_CONF = '/etc/memcached.conf'
|
||||
@ -295,6 +296,10 @@ BASE_RESOURCE_MAP = OrderedDict([
|
||||
context.SyslogContext()],
|
||||
'services': [],
|
||||
}),
|
||||
(APACHE_PORTS_CONF, {
|
||||
'contexts': [],
|
||||
'services': ['apache2'],
|
||||
}),
|
||||
])
|
||||
|
||||
valid_services = {
|
||||
|
4
templates/ports.conf
Normal file
4
templates/ports.conf
Normal file
@ -0,0 +1,4 @@
|
||||
# File written by Juju: don't open default ports on SSL environments (see LP 1845665).
|
||||
<IfModule !ssl_module>
|
||||
Listen 80
|
||||
</IfModule>
|
Loading…
x
Reference in New Issue
Block a user