CWP 0.9.8.6
I have configured varnish on apache with varnish listening on <main IP>:80 and apache listening on 127.0.0.1:82.
I have virtual hosts configured in apache. Initial setup (before varnish) put the vhosts on <main IP> and the vhosts config file defined each vhost as
# vhost_start <my domain>
<VirtualHost 107.191.xxx.xxx:80>
After initial configuration of varnish, CWP edited the vhosts config file to:
# vhost_start <my domain>
<VirtualHost 127.0.0.1:82>
Good - everything works like this.
I now edited my vhost template (to add an errordocument) and rebuilt the virtual hosts
Just above the rebuild window, CWP tells me that:
Rebuilding Apache vHosts will delete all Domains and Sub-domains from Virtual Host file and build new based on your template file.
Shared IP which will be used in configuration: 127.0.0.1 on port: 82
Good
But, after the rebuild, the vhosts file has actually become:
# vhost_start <my domain>
<VirtualHost 107.191.xxx.xxx:82>
So the rebuild edited the IP back to the main IP instead of leaving it at 127.0.0.1
To get the site working again I have to go to the varnish setup page, deconfigure (apache back to main IP:80) then reconfigure (apache to 127.0.0.1:82) - then the vhosts file gets updated correctly