mass restore alias domains corrupts Apache httpd.conf

CentOS Linux release 7.7.1908 wbm-virtual-server-6.08.gpl-1.noarch

Restoring 100+ domains with many alias domains from a directory corrupts Apache httpd.conf The problem is in /usr/libexec/webmin/virtual-server/ restore_web function's alias restoring part.

The fix is clearing the apache config cache.

1548 &flush_file_lines($pvirt->{'file'}); 1549 + undef(@apache::get_config_cache); 1550 &$second_print($text{'setup_done'});

Please review it and include it in a next release.

Thank you.

Regards, Matyas



Ilia's picture
Submitted by Ilia on Sun, 02/09/2020 - 09:53

Assigned: Unassigned ยป


I will pass it to Jamie for review.

Thanks for the feedback.

That shouldn't actually be needed, since the cache is updated by apache::save_directive .

What kind of corruption happens exactly?