|
From: Patrick v. E. <pat...@gm...> - 2005-10-31 13:04:54
|
Hi, One of the servers I've set up in Virtualmin has some subservers which are aliases for the main server. Up until some time ago, the bandwidth usage was calculated correctly, but since some time ago the usage for the server and subservers is added together, so now I get false usage numbers. What can I do to fix this? Thank you, Patrick van Elk |
|
From: Jamie C. <jca...@we...> - 2005-10-31 18:14:09
|
On Mon, 2005-10-31 at 05:04, Patrick van Elk wrote: > Hi, > > One of the servers I've set up in Virtualmin has some subservers which > are aliases for the main server. Up until some time ago, the bandwidth > usage was calculated correctly, but since some time ago the usage for > the server and subservers is added together, so now I get false usage > numbers. > > What can I do to fix this? If you go to the Bandwidth Usage page and click on the 'Parent and sub-servers' link, does it show any usage at all for your sub-domains? By the way, for alias websites that are created by just adding another ServerAlias entry to the main server's httpd.conf section, there will never be any web bandwidth recorded as they have no separate website.. Instead, it will all accumulate against the parent server. - Jamie |
|
From: Patrick v. E. <pat...@gm...> - 2005-10-31 23:40:43
|
Hi Jamie, Thank you for your response. Jamie Cameron schreef op 31-10-05 19:13: >If you go to the Bandwidth Usage page and click on the 'Parent and >sub-servers' link, does it show any usage at all for your sub-domains? > > No, for other sub-servers the usage is zero bytes (as it should? at least, that is what I would want it to be). For the problem server, I get something like this: domain.nl limit 5120 usage 208 alias1.nl limit [blank] usage 208 alias2.nl limit [blank] usage 208 alias3.nl limit [blank] usage 208 alias4.nl limit [blank] usage 208 alias5.nl limit [blank] usage 208 alias6.nl limit [blank] usage 208 When I click on domain.nl and go to the 'Parent servers only' page, it reads limit 5120 usage 1455. >By the way, for alias websites that are created by just adding another >ServerAlias entry to the main server's httpd.conf section, there will >never be any web bandwidth recorded as they have no separate website.. >Instead, it will all accumulate against the parent server. > > Yes, that is exactly how it worked before. I now remember I had to make some temporary changes in the httpd.conf for this particular server and undid them a while ago (so everything should be in the same state as when the bandwidth usage was recorded correctly), but now all usage is being recorded for each ServerAlias. Do you have an idea what I could be doing wrong? Bye, Patrick |
|
From: Jamie C. <jca...@we...> - 2005-11-01 05:22:29
|
On Mon, 2005-10-31 at 15:41, Patrick van Elk wrote: > Hi Jamie, > > Thank you for your response. > > Jamie Cameron schreef op 31-10-05 19:13: > > >If you go to the Bandwidth Usage page and click on the 'Parent and > >sub-servers' link, does it show any usage at all for your sub-domains? > > > > > No, for other sub-servers the usage is zero bytes (as it should? at > least, that is what I would want it to be). For the problem server, I > get something like this: > > domain.nl limit 5120 usage 208 > alias1.nl limit [blank] usage 208 > alias2.nl limit [blank] usage 208 > alias3.nl limit [blank] usage 208 > alias4.nl limit [blank] usage 208 > alias5.nl limit [blank] usage 208 > alias6.nl limit [blank] usage 208 > > When I click on domain.nl and go to the 'Parent servers only' page, it > reads limit 5120 usage 1455. Are these aliases created as separate <VirtualHost> sections in httpd.conf, or just as extra ServerAlias lines in the section for domain.nl ? I suspect that it may be the former, which could cause problems .. - Jamie |
|
From: Patrick v. E. <pat...@gm...> - 2005-11-01 07:19:21
|
Hi Jamie, Jamie Cameron schreef op 01-11-05 06:21: >Are these aliases created as separate <VirtualHost> sections in >httpd.conf, or just as extra ServerAlias lines in the section for >domain.nl ? I suspect that it may be the former, which could cause >problems .. > > Yes, there are extra ServerAlias lines: <VirtualHost [IP-number]:80> ServerName domain.nl ServerAlias www.domain.nl ServerAlias www.domain.be ServerAlias www.alias1.nl ServerAlias www.alias1.be ServerAlias www.alias2.nl ServerAlias www.alias2.be DocumentRoot /home/[username]/public_html ErrorLog /home/[username]/logs/error_log CustomLog /home/[username]/logs/access_log common ScriptAlias /cgi-bin/ /home/[username]/cgi-bin/ <Directory /home/[username]/public_html> Options -Indexes IncludesNOEXEC FollowSymLinks </Directory> </VirtualHost> I saw that if I add a Alias Server instead of a normal sub-server to an existing server, an extra <VirtualHost> is created in httpd.conf with a Redirect. This works for another domain, should I recreate the aliases for domain.nl as Alias Servers maybe? Patrick |
|
From: Jamie C. <jca...@we...> - 2005-11-02 00:50:26
|
On Mon, 2005-10-31 at 23:19, Patrick van Elk wrote: > Hi Jamie, > > Jamie Cameron schreef op 01-11-05 06:21: > > >Are these aliases created as separate <VirtualHost> sections in > >httpd.conf, or just as extra ServerAlias lines in the section for > >domain.nl ? I suspect that it may be the former, which could cause > >problems .. > > > > > Yes, there are extra ServerAlias lines: > > <VirtualHost [IP-number]:80> > ServerName domain.nl > ServerAlias www.domain.nl > ServerAlias www.domain.be > ServerAlias www.alias1.nl > ServerAlias www.alias1.be > ServerAlias www.alias2.nl > ServerAlias www.alias2.be > DocumentRoot /home/[username]/public_html > ErrorLog /home/[username]/logs/error_log > CustomLog /home/[username]/logs/access_log common > ScriptAlias /cgi-bin/ /home/[username]/cgi-bin/ > <Directory /home/[username]/public_html> > Options -Indexes IncludesNOEXEC FollowSymLinks > </Directory> > </VirtualHost> > > I saw that if I add a Alias Server instead of a normal sub-server to an > existing server, an extra <VirtualHost> is created in httpd.conf with a > Redirect. This works for another domain, should I recreate the aliases > for domain.nl as Alias Servers maybe? No, it should work (and in fact should work better) they was it is. Which version of Virtualmin are you running there? I may need to debug this.. - Jamie |
|
From: Patrick v. E. <pat...@gm...> - 2005-11-02 06:46:52
|
Jamie Cameron schreef op 02-11-05 01:50: >No, it should work (and in fact should work better) they was it is. >Which version of Virtualmin are you running there? I may need to debug >this.. > > I'm running Webmin 1.240 with Virtualmin 2.608, but I've had this problem for a number of months with other versions of both Webmin and Virtualmin, only for this server. I will try and look at httpd.conf again to see that I'm not missing something... but up until now I couldn't find the problem unfortunately. Thank you for your support so far, Patrick |
|
From: Jamie C. <jca...@we...> - 2005-11-02 06:58:18
|
On Tue, 2005-11-01 at 22:47, Patrick van Elk wrote: > Jamie Cameron schreef op 02-11-05 01:50: > > >No, it should work (and in fact should work better) they was it is. > >Which version of Virtualmin are you running there? I may need to debug > >this.. > > > > > I'm running Webmin 1.240 with Virtualmin 2.608, but I've had this > problem for a number of months with other versions of both Webmin and > Virtualmin, only for this server. I will try and look at httpd.conf > again to see that I'm not missing something... but up until now I > couldn't find the problem unfortunately. Are you sure those extra servers are actually alias domains? You can tell by clicking on one and looking for the 'Alias of server' field.. Normally alias servers don't even appear on the bandwidth page at all, although you said that they are being (incorrectly) listed. - Jamie |
|
From: Patrick v. E. <pat...@gm...> - 2005-11-02 15:14:10
|
Hi Jamie, Jamie Cameron schreef op 02-11-05 07:57: >Are you sure those extra servers are actually alias domains? You can >tell by clicking on one and looking for the 'Alias of server' field.. >Normally alias servers don't even appear on the bandwidth page at all, >although you said that they are being (incorrectly) listed. > > Sorry, I didn't quite say it right in my first post. What I meant to say was, the sub-servers were pointing to the web site of their parent server with a ServerAlias in httpd.conf, but I didn't create them with the Create Alias Server button (now I get an extra VirtualHost with a Redirect). I have recreated all of the domains with 'Create Alias Server' and the bandwidth usage seems to be right! Now I have one domain left which is really not an Alias Server. I will wait and see if the bandwidth usage for this sub-server is correct too... Thank you very much, Patrick |
|
From: Patrick v. E. <pat...@gm...> - 2005-11-03 18:05:35
|
Hi, Patrick van Elk schreef op 02-11-05 16:14: > Now I have one domain left which is really not an Alias Server. I will > wait and see if the bandwidth usage for this sub-server is correct too... Unfortunately, it looks as if the bandwidth usage of this server is still wrong. The difference between the bandwidth usage of the parent server and the sub-server was and is constantly 17-18 megabytes over the last two days, I think that is too much of a coincidence... Bye, Patrick |
|
From: Jamie C. <jca...@we...> - 2005-11-03 21:21:49
|
On Thu, 2005-11-03 at 10:05, Patrick van Elk wrote: > Hi, > > Patrick van Elk schreef op 02-11-05 16:14: > > > Now I have one domain left which is really not an Alias Server. I will > > wait and see if the bandwidth usage for this sub-server is correct too... > > Unfortunately, it looks as if the bandwidth usage of this server is > still wrong. The difference between the bandwidth usage of the parent > server and the sub-server was and is constantly 17-18 megabytes over the > last two days, I think that is too much of a coincidence... Could you post the contents of the bandwidth graph page again, showing the parent and sub-servers? I want to take a look at the actual numbers.. - Jamie |
|
From: Jamie C. <jca...@we...> - 2005-11-05 12:51:16
|
On Fri, 2005-11-04 at 10:16, Patrick van Elk wrote: > Jamie Cameron schreef op 03-11-05 22:21: > > >Could you post the contents of the bandwidth graph page again, showing > >the parent and sub-servers? I want to take a look at the actual > >numbers.. > > > > > Sure! These are the numbers I recorded until now, the format is date - > time - usage parent - usage sub-server - website traffic. > > 02/11 16:51 693 + 711 = 1403 > 02/11 17:38 702 + 720 = 1422 > 02/11 20:36 705 + 723 = 1428 > 03/11 14:14 790 + 808 = 1597 > 03/11 15:47 800 + 818 = 1617 > 03/11 18:42 812 + 829 = 1640 > 03/11 19:04 818 + 835 = 1653 > 04/11 00:08 820 + 837 = 1657 > > I hope these are of any use to you. Maybe I'm doing something terribly > wrong here, but I'm pretty clueless about what it could be... Hi Patrick, Those numbers actually seem to add up though .. so I don't see where the problem is. Could you explain the problem to me again? - Jamie |
|
From: Patrick v. E. <pat...@gm...> - 2005-11-07 07:59:16
|
Hi Jamie, 05 Nov 2005 23:51:00 +1100, Jamie Cameron <jca...@we...>: > Those numbers actually seem to add up though .. so I don't see where the > problem is. Could you explain the problem to me again? Well, the problem is: the parent and the sub-server point to different web sites with different domain names. The chance that both web sites would get _exactly_ the same traffic over a longer period would be extremely small, so I'm thinking the traffic for one site is also added to the traffic of the other... Bye, Patrick |
|
From: Patrick v. E. <pat...@gm...> - 2005-11-03 23:16:37
|
Jamie Cameron schreef op 03-11-05 22:21: >Could you post the contents of the bandwidth graph page again, showing >the parent and sub-servers? I want to take a look at the actual >numbers.. > > Sure! These are the numbers I recorded until now, the format is date - time - usage parent - usage sub-server - website traffic. 02/11 16:51 693 + 711 = 1403 02/11 17:38 702 + 720 = 1422 02/11 20:36 705 + 723 = 1428 03/11 14:14 790 + 808 = 1597 03/11 15:47 800 + 818 = 1617 03/11 18:42 812 + 829 = 1640 03/11 19:04 818 + 835 = 1653 04/11 00:08 820 + 837 = 1657 I hope these are of any use to you. Maybe I'm doing something terribly wrong here, but I'm pretty clueless about what it could be... Bye, Patrick |