Show Posts

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.


Messages - andrewmlove

Pages: [1]
1
..and just to add an update to this.  If I add a new domain while varnish is enabled (and the shared IP is already set to 127.0.0.1) then the new vhost does get the correct (127.0.0.1) address in the vhost conf file.

So the problem seems to be just when the template is edited

2
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



3
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

4
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>



5
CentOS-WebPanel Bugs / Re: CWP 0.9.3 Error Removing Account
« on: April 16, 2015, 12:58:27 PM »
I had the same symptoms.  There was one user account that I just could not delete. 

I could create a new account and then delete it without trouble.

Eventually I found that I had an outstanding ssh session still logged on to the rogue account from another terminal.  When I closed that session I could delete the account successfully.

Pages: [1]