git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 62572] New: Moving name based VirtualHost to ServerAlias prevents apache from restarting


https://bz.apache.org/bugzilla/show_bug.cgi?id=62572

            Bug ID: 62572
           Summary: Moving name based VirtualHost to ServerAlias prevents
                    apache from restarting
           Product: Apache httpd-2
           Version: 2.4.34
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_md
          Assignee: bugs@xxxxxxxxxxxxxxxx
          Reporter: serge.hauser@xxxxxxxx
  Target Milestone: ---

When i have two separate name based virtual hosts using Let's Encrypt and i
start apache httpd everything is fine:

--- START conf.snippet ---
Listen          <MYIP>:443

MDomain         server1.mydomain.com
MDomain         server2.mydomain.com

<VirtualHost <MYIP>:443>
ServerName             server1.mydomain.com
ServerAdmin            admin@xxxxxxxxxxxx
.
</VirtualHost>
<VirtualHost <MYIP>:443>
ServerName             server2.mydomain.com
ServerAdmin            admin@xxxxxxxxxxxx
...
</VirtualHost>
--- END conf.snippet ---

Then i change the config and configure server2.mydomain.com as an alias of
server1.mydomain.com and httpd refuses to start:

--- START conf.snippet ---
Listen          <MYIP>:443

MDomain         server1.mydomain.com

<VirtualHost <MYIP>:443>
ServerName             server1.mydomain.com
ServerAdmin            admin@xxxxxxxxxxxx
ServerAlias            server2.mydomain.com
...
</VirtualHost>
--- END conf.snippet ---


Log Messages:
26/07 11:37:20.971 err (22)Invalid argument: AH10073: synching 1 mds to
registry 26/07 11:37:20.971 err (22)Invalid argument: md server1.mydomain.com
shares domain 'server2.mydomain.com' with md server2.mydomain.com
26/07 11:37:20.971 warning domain server2.mydomain.com, configured in md
server1.mydomain.com, is part of the stored md server2.mydomain.com. That md
however is no longer mentioned in the config. If you longer want it, remove the
md from the store.


Workaround:
 - Delete ${MDStoreDir}/domains/server2.mydomain.com before restart.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx




( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache2-bugs/msg03060.html on line 144
Call Stack
#TimeMemoryFunctionLocation
10.0007358280{main}( ).../msg03060.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache2-bugs/msg03060.html on line 144
Call Stack
#TimeMemoryFunctionLocation
10.0007358280{main}( ).../msg03060.html:0