Koozali.org: home of the SME Server
Contribs.org Forums => Koozali SME Server 10.x Contribs => Topic started by: jameswilson on May 03, 2024, 04:02:37 AM
-
Hi all
Ive added awstats but it isnt working for one domain.
It processing thousands of logs and working for all the others but 1 (is leading www.*)if relevant doesnt show.
Unsure where to start looking for what ive done wrong.
James
-
is the www. in domains or hosts?
-
Hi JP
Its in domains on the sme panel and domains only (if relevant) on lets encrypt
-
is the www. in domains or hosts?
i notice however its listed under the admin user as www.securitywarehouse.co.uk
and the same domain listed twice in the admin pages
securitywarehouse.co.uk xxxxxx ...
support.securitywarehouse.co.uk xxxx ...
store.securitywarehouse.co.uk xxxxx ...
store-test.securitywarehouse.co.uk xxxxxxx ...
securitywarehouse.co.uk xxxxxx ...
Updated on 05/03/2024 at 17:30 in 13 secs. 2524 new logs processed.
james
-
maybe i can remove awstats (i can do that through yum)But is there a way to remove all config files so all is recreated. I did rename the server through the console maybe thats caused an issue?
James
-
i think the issue is not awstats related, i mean removing and reinstlaling won’t help.
issue is rather the way your domains are set as domains and hosts in SME
my guess as you did not answer the question is that
www.securitywarehouse.co.uk is set in domains
securitywarehouse.co.uk is set in hosts.
awstats is set per VirtualHosts. and we set the Virtualhosts per domain in db domains (domains.tld) with each related hosts in db hosts (*.domains.tld) as an alias for this virtualhost in httpd
-
i think the issue is not awstats related, i mean removing and reinstlaling won’t help.
issue is rather the way your domains are set as domains and hosts in SME
my guess as you did not answer the question is that
www.securitywarehouse.co.uk is set in domains
securitywarehouse.co.uk is set in hosts.
awstats is set per VirtualHosts. and we set the Virtualhosts per domain in db domains (domains.tld) with each related hosts in db hosts (*.domains.tld) as an alias for this virtualhost in httpd
Yes that is correct. What should I do to correct it?
-
securitywarehouse.co.uk is your domain
www is a host at that domain.
When you set up a domain the server automagically sets some hosts for you eg www,ftp,mail etc
So you have everything the wrong way round.
Not sure the best solution here.
JP may know so wait for him to pop up later.
-
all hits to www should be accounted in the main domain as they both go to the same virtualhost.
if you had a domain2 pointing to same ibay. this would be currently for sme a different virtualhost and awstats would account for it separately.
why would you account www.domain and domain separetly if they display same content?
-
why would you account www.domain and domain separetly if they display same content?
lack of knowledge?
named the server then added the domain.
I can rename the server to be something different domain name wise if needed
-
why it would be needed?
again, why would you like to account the two separately when pointing to same content
-
why it would be needed?
again, why would you like to account the two separately when pointing to same content
Hi JP
I dont but the stats for www. dont show in the stats
-
Can you post the output from
db domains show
-
[root@cov1-2 catalog]# db domains show
securitywarehouse.co.uk=domain
Content=sw-zen
Description=secware
Nameservers=internet
secware.co.uk=domain
Content=Primary
Description=Primary domain
Nameservers=localhost
Removable=no
SystemPrimaryDomain=yes
store-test.securitywarehouse.co.uk=domain
Content=store-test
Description=secware test domain
Nameservers=internet
letsencryptSSLcert=enabled
store.securitywarehouse.co.uk=domain
Content=store-sw
Description=store sw
Nameservers=internet
letsencryptSSLcert=enabled
support.securitywarehouse.co.uk=domain
Content=support-sw
Description=Support secware
Nameservers=internet
letsencryptSSLcert=enabled
sw-zen2.securitywarehouse.co.uk=domain
Content=sw-zen2
Description=secware zen2
Nameservers=internet
test.securitywarehouse.co.uk=domain
Content=test-install
Description=test sw ibay
Nameservers=internet
webstats.securitywarehouse.co.uk=domain
Content=webstats
Description=webstats
Nameservers=internet
www.securitywarehouse.co.uk=domain
Content=sw-zen
Description=secware
Nameservers=corporate
letsencryptSSLcert=enabled
Thanks for looking
-
and what gives
db hosts show |grep www
I am pretty sure you have: www.securitywarehouse.co.uk=host
some information about apache and apache log
on apache logs (what awstat uses) the domain name you see at the very beginning is the Virtualhost ServerName, whether you use an alias or the virtualhost name as a match it will only display the virtualhost ServerName. (SME put all matching host as serveralias in the virtualhost for servername directive)
in apache configuration file, if you get multiple matches for the same thing it has a really complexe way of solving this depending on in what type of context it is encountered (file, virtualhost, alias...) but for virtualhost it has tendency to merge them and with a serveralias matching another ServerName, there are chance that this is the first occurrence in the file that will win.
and again comes my question for the third time, and i will try to rephrase again :
why in the world would you need to have the www accounted separetly when it points to the exact same content ?
-
In essence you already had a host called:
www.securitywarehouse.co.uk
Because you have this domain set:
securitywarehouse.co.uk=domain
But you have (probably mistakenly) added
www.securitywarehouse.co.uk=domain
(Have you actually registered that as a DOMAIN with a domain registrar?)
And if you look in your hosts you will probably find:
www.securitywarehouse.co.uk=host
www.www.securitywarehouse.co.uk=host
Which I'm pretty sure was not your intention.
The short answer here is unless you can provide a logical reason - and despite us asking you haven't told us - get rid of:
www.securitywarehouse.co.uk=domain
and any related hosts eg
ftp.www.securitywarehouse.co.uk
-
Ah
ok result of db hosts show |grep www
[root@cov1-2 files]# db hosts show |grep www
cov1-2.www.securitywarehouse.co.uk=host
ftp.www.securitywarehouse.co.uk=host
mail.www.securitywarehouse.co.uk=host
proxy.www.securitywarehouse.co.uk=host
www.securitywarehouse.co.uk=host
www.secware.co.uk=host
www.store-test.securitywarehouse.co.uk=host
www.store.securitywarehouse.co.uk=host
www.support.securitywarehouse.co.uk=host
www.sw-zen2.securitywarehouse.co.uk=host
www.test.securitywarehouse.co.uk=host
www.webstats.securitywarehouse.co.uk=host
why in the world would you need to have the www accounted separetly when it points to the exact same content ?
Id say lack of knowledge Sorry
This website is using www. so i wanted to keep that
I totally get i have got something wrong but i either dont get what your asking or can work out what you mean.
Thats totally on me i do get that.
Code: [Select]
www.securitywarehouse.co.uk=domain
(Have you actually registered that as a DOMAIN with a domain registrar?)
its a subdomain and has always been setup again maybe incorrectly
Which I'm pretty sure was not your intention.
your right ;)
-
so as explained in previous message :
www.securitywarehouse.co.uk=host
makes the www hits accounted in securitywarehouse.co.uk=domain
www.securitywarehouse.co.uk=domain <- acts as duplicate
unless you have specific needs, eg want to get ride of www and trying to account how many hits comes from there, you can just delete the domains entry for the www which acts as duplicate.
-
unless you have specific needs, eg want to get ride of www and trying to account how many hits comes from there, you can just delete the domains entry for the www which acts as duplicate.
so if i delete the www. domain from the domain lists in control panel - domains, the server will know to send all traffic to the non www. ibay?
Thanks
-
so if i delete the www. domain from the domain lists in control panel - domains, the server will know to send all traffic to the non www. ibay?
Thanks
exactly because of the www host
-
Ok Wonderful Thanks