httpd -t -D DUMP_VHOSTS doesn't print ServerAlias if there's only one VirtualHost declared for specific address and port. <VirtualHost *:80> ServerName dummy-host.example.com ServerAlias www.dummy-host.example.com ServerAlias *.dummy-host.example.com </VirtualHost> <VirtualHost *:80> ServerName dummy-host2.example.com </VirtualHost> <VirtualHost *:8080> ServerName 8080-dummy-host.example.com ServerAlias www.8080-dummy-host.example.com ServerAlias *.8080-dummy-host.example.com </VirtualHost> For this configuration httpd -t -D DUMP_VHOSTS prints this: VirtualHost configuration: *:80 is a NameVirtualHost default server dummy-host.example.com (/home/user/bin/conf/extra/httpd-vhosts.conf:1) port 80 namevhost dummy-host.example.com (/home/user/bin/conf/extra/httpd-vhosts.conf:1) alias www.dummy-host.example.com wild alias *.dummy-host.example.com port 80 namevhost dummy-host2.example.com (/home/user/bin/conf/extra/httpd-vhosts.conf:7) *:8080 8080-dummy-host.example.com (/home/user/bin/conf/extra/httpd-vhosts.conf:11) There's no output for ServerAlias records for VirtualHost *:8080.
Created attachment 37396 [details] patch for bug 64675
With patch applied httpd -t -D DUMP_VHOSTS prints this: VirtualHost configuration: *:80 is a NameVirtualHost default server dummy-host.example.com (/home/user/bin/conf/extra/httpd-vhosts.conf:1) port 80 namevhost dummy-host.example.com (/home/user/bin/conf/extra/httpd-vhosts.conf:1) alias www.dummy-host.example.com wild alias *.dummy-host.example.com port 80 namevhost dummy-host2.example.com (/home/user/bin/conf/extra/httpd-vhosts.conf:7) *:8080 8080-dummy-host.example.com (/home/user/bin/conf/extra/httpd-vhosts.conf:11) alias www.8080-dummy-host.example.com wild alias *.8080-dummy-host.example.com
anyone have thoughts on this issue, and the suggested fix ??