APACHE TUNE

NameVirtualHost has no effect

Remoted remoted 2020. 1. 30. 15:38

About a week ago, when restarting apache using ssh, I got the following notice:
"AH00548: NameVirtualHost has no effect and will be removed in the next release..."
Same issue seen in this post:
NameVirtualHost has no effect error?

I ran the rebuild mentioned in that post, and also rebuilt the EA4 profile, the notice disappeared for couple of days, then came back!

Any easy way to stop these residual NameVirtualHost entries from regenerating?

webhostukWell-Known Member

 

 

Sep 27, 2017

Can you open your httpd.conf file and check if the entry for Virtualhost is :
<VirtualHost xxx.xx.xxx.xx:80> where (xxx is your IP ) try to replace it with : <VirtualHost *:80> and restart apache.
Check if that solved the problem.

WebhostUK LTD : Best UK Web Hosting
Cloud VPS Hosting & Managed Servers

G

gnetwork-cpMember 

 

 

 

Sep 27, 2017

Thanks for suggestion. For some reason only one virtual host had the NameVirtualHost entry stuck.
I resaved that domain's zone, and ran /scripts/rebuildhttpdconf - the NameVirtualHost entry has disappeared again, and hopefully will stay like that.

C

cPanelMichaelAdministrator 

Staff member

 

 

Sep 27, 2017

Hello,

The "NameVirtualHost has no effect and will be removed in the next release" message is informational and will not result in any issues accessing your websites. It's no longer used as of cPanel version 68:

Fixed case CPANEL-15364: Avoid adding NameVirtualHost to httpd.conf when using EA4.

Thank you.

1 2 3 4 5 6 7 ··· 13