Using devstack on a RHEL based system results in
"Listen 0.0.0.0:80" being added to the
/etc/httpd/conf/httpd.conf.
This configures Apache to only listen to port 80 on an IPv4 interface.
This makes it not possible to access Horizon via IPv6 without
re-configuring and restarting httpd.
Removing this sed leaves the default "Listen 80" from the rpm package,
which binds to all interfaces and will allow connection to Horizon
via IPv6.
Change-Id: I9fe8cbebff0ca6a30ceeaae0f7e035c9bb828d44
... | ... |
@@ -121,9 +121,7 @@ function configure_horizon { |
121 | 121 |
if is_ubuntu; then |
122 | 122 |
disable_apache_site 000-default |
123 | 123 |
sudo touch $horizon_conf |
124 |
- elif is_fedora; then |
|
125 |
- sudo sed '/^Listen/s/^.*$/Listen 0.0.0.0:80/' -i /etc/httpd/conf/httpd.conf |
|
126 |
- elif is_suse; then |
|
124 |
+ elif is_fedora || is_suse; then |
|
127 | 125 |
: # nothing to do |
128 | 126 |
else |
129 | 127 |
exit_distro_not_supported "horizon apache configuration" |