Author Topic: Error in vhost rebuild for subdomain  (Read 8714 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error in vhost rebuild for subdomain
« on: April 26, 2015, 02:07:05 AM »
I am creating a subdomain of an addon domain.

The initial creation of the subdomain, from the users control panel, works fine.  I see the vhost.conf template filled in with the correct details, apache restarts and the subdomain works correctly.

However, if I do a 'rebuild vhosts' from the main panel, the IP address of the subdomain is missing from the vhosts.conf.

I see the following error above the panel that shows the vhost.conf:
Notice: Undefined index: ip_address in /usr/local/cwpsrv/htdocs/resources/admin/modules/vhost_rebuild.php(1) : eval()'d code(1) : eval()'d code on line 53

and so the VirtualHost directive comes out as:
<VirtualHost :80>



Offline
*
Re: Error in vhost rebuild for subdomain
« Reply #1 on: September 04, 2016, 08:32:25 PM »
I can confirm that Rebuilding Virtual Hosts (vhost_rebuild) stops all subdomains from functioning.

This is a serious bug: