Bug 1225820

Summary: httpd -D DUMP_VHOSTS shows all vhosts 2 times
Product: Red Hat Enterprise Linux 7 Reporter: Mario Trangoni <mjtrangoni>
Component: httpdAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED ERRATA QA Contact: Martin Frodl <mfrodl>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: isenfeld, jkaluza, jorton, knweiss, mjtrangoni
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: httpd-2.4.6-34.el7 Doc Type: Bug Fix
Doc Text:
Cause: When processing a vhost with * or _default_, httpd added the vhost's alias once for 0.0.0.0 and once for [::]. Consequence: The apachectl -D DUMP_VHOSTS showed these vhosts twice. Fix: httpd now detects mentioned situation and adds vhost's alias just once. Result: The apachectl -D DUMP_VHOSTS shows all vhosts just once.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 04:37:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mario Trangoni 2015-05-28 09:48:29 UTC
Description of problem:

I found that this bugfix (https://bugzilla.redhat.com/show_bug.cgi?id=928761) and this(https://bugzilla.redhat.com/show_bug.cgi?id=928761)is not integrated in RHEL7.1.

It would be nice to have a cleaner output.

Version-Release number of selected component (if applicable):

# yum info httpd.x86_64
Loaded plugins: changelog
Available Packages
Name        : httpd
Arch        : x86_64
Version     : 2.4.6
Release     : 31.el7
Size        : 1.2 M
Repo        : rhel-7-server-rpms/7Server/x86_64
Summary     : Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
            : web server.


How reproducible:


Steps to Reproduce:
1. httpd -D DUMP_VHOSTS

Actual results:

         port 80 namevhost hans.tests113.de (/etc/httpd/sites/vhosts:112)
                 wild alias *.hans.tests113.de
         port 80 namevhost hans.tests113.de (/etc/httpd/sites/vhosts:112)
                 wild alias *.hans.tests113.de
         port 80 namevhost tests113.de (/etc/httpd/sites/vhosts:123)
                 wild alias *.tests113.de
         port 80 namevhost tests113.de (/etc/httpd/sites/vhosts:123)
                 wild alias *.tests113.de
         port 80 namevhost test1.de (/etc/httpd/sites/vhosts:159)
                 wild alias *.test1.de
         port 80 namevhost test1.de (/etc/httpd/sites/vhosts:159)
                 wild alias *.test1.de
         port 80 namevhost test2.de (/etc/httpd/sites/vhosts:196)
                 wild alias *.test2.de
         port 80 namevhost test2.de (/etc/httpd/sites/vhosts:196)
                 wild alias *.test2.de
         port 80 namevhost test3.de (/etc/httpd/sites/vhosts:233)
                 wild alias *.test3.de
         port 80 namevhost test3.de (/etc/httpd/sites/vhosts:233)
                 wild alias *.test3.de

Expected results:
         port 80 namevhost hans.tests113.de (/etc/httpd/sites/vhosts:112)
                 wild alias *.hans.tests113.de
         port 80 namevhost tests113.de (/etc/httpd/sites/vhosts:123)
                 wild alias *.tests113.de
         port 80 namevhost test1.de (/etc/httpd/sites/vhosts:159)
                 wild alias *.test1.de
         port 80 namevhost test2.de (/etc/httpd/sites/vhosts:196)
                 wild alias *.test2.de
         port 80 namevhost test3.de (/etc/httpd/sites/vhosts:233)
                 wild alias *.test3.de

Additional info:

Comment 7 errata-xmlrpc 2015-11-19 04:37:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2194.html