This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
CentOS-WebPanel Bugs / Editing vhost template breaks vhost config when varnish is enabled
« on: May 03, 2015, 02:39:15 AM »
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
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
2
CentOS-WebPanel Bugs / file editor text areas treat back slashes incorrectly
« on: April 28, 2015, 01:53:28 PM »
I'm editing my vhost templates.
I'm wanting to add a regex in a rewrite condition where the regex contains an escaped character eg:
example\.com
When I save the template, the backslash disappears. (Presumably the cwp editor is itself interpreting it as an escape character.)
I can get round this initially by doubling the backslash, eg:
example\\.com
But of course, if I save twice, they both disappear.
Could you please fix this?
Thanks
I'm wanting to add a regex in a rewrite condition where the regex contains an escaped character eg:
example\.com
When I save the template, the backslash disappears. (Presumably the cwp editor is itself interpreting it as an escape character.)
I can get round this initially by doubling the backslash, eg:
example\\.com
But of course, if I save twice, they both disappear.
Could you please fix this?
Thanks
3
CentOS-WebPanel Bugs / 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>
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>
Pages: [1]