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: I881c3569a25c0f0a84c14ee086b3f3adfdbc97f9 Closes-bug: #1845665
This commit is contained in:
parent
1b923c5731
commit
0ef0ebb9b0
@ -112,6 +112,7 @@ HEAT_DIR = '/etc/heat'
|
||||
HEAT_CONF = '/etc/heat/heat.conf'
|
||||
HEAT_API_PASTE = '/etc/heat/api-paste.ini'
|
||||
HAPROXY_CONF = '/etc/haproxy/haproxy.cfg'
|
||||
APACHE_PORTS_CONF = '/etc/apache2/ports.conf'
|
||||
HTTPS_APACHE_CONF = '/etc/apache2/sites-available/openstack_https_frontend'
|
||||
HTTPS_APACHE_24_CONF = os.path.join('/etc/apache2/sites-available',
|
||||
'openstack_https_frontend.conf')
|
||||
@ -164,6 +165,10 @@ CONFIG_FILES = OrderedDict([
|
||||
'contexts': [context.MemcacheContext()],
|
||||
'services': ['memcached'],
|
||||
}),
|
||||
(APACHE_PORTS_CONF, {
|
||||
'contexts': [],
|
||||
'services': ['apache2'],
|
||||
}),
|
||||
])
|
||||
|
||||
|
||||
|
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>
|
@ -54,6 +54,7 @@ RESTART_MAP = OrderedDict([
|
||||
('/etc/apache2/sites-available/openstack_https_frontend.conf',
|
||||
['apache2']),
|
||||
('/etc/memcached.conf', ['memcached']),
|
||||
('/etc/apache2/ports.conf', ['apache2']),
|
||||
])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user