AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.vhost:7
Summary
The line mentioned in $SUBJECT is output every restart of apache.
Steps to reproduce
- Setup an Ubuntu 22.04 minimal VM image and ssh into it
- cd /tmp
- git clone https://git.ispconfig.org/ispconfig/ispconfig-autoinstaller.git
- cd ispconfig-autoinstaller
- git checkout ubuntu-22
- sed -i -e '/8.1/s/8.1/7.2/g' lib/os/class.ISPConfigUbuntu2204OS.inc.php
- ./ispc3-ai.sh --channel=dev --use-ftp-ports=40110-40210 --unattended-upgrades=autoclean,reboot
- reboot the VM
- execute "apachectl restart"
Correct behaviour
This line should not appear.
Solution:
Remove NameVirtualHost from the ISPconfig templates:
/usr/local/ispconfig/server/conf# grep NameVirtualHost *
apache_apps.vhost.master:# NameVirtualHost *:{tmpl_var name='apps_vhost_port'}
apache_ispconfig.conf.master: NameVirtualHost *:80
apache_ispconfig.conf.master: NameVirtualHost *:443
apache_ispconfig.conf.master: NameVirtualHost {tmpl_var name="ip_address"}:{tmpl_var name="port"}