[Solved] /etc/apache2/sites-available/default
[Solved] /etc/apache2/sites-available/default
Hello,
I have installed WatussiBox http://box.watussi.fr/ to log GoogleBot.
The install process is here : https://www.evernote.com/shard/s45/sh/8 ... 83e615c63c
In instruction, it's said that I should add some lines in my : /etc/apache2/sites-available/default
Such files don't exist in a VestaCP installation, so I have add and adapt the line for this file :
/home/admin/conf/web/apache2.conf
But Watussibox don't display the passage of Googlebot.
Some help?
Thx.
I have installed WatussiBox http://box.watussi.fr/ to log GoogleBot.
The install process is here : https://www.evernote.com/shard/s45/sh/8 ... 83e615c63c
In instruction, it's said that I should add some lines in my : /etc/apache2/sites-available/default
Such files don't exist in a VestaCP installation, so I have add and adapt the line for this file :
/home/admin/conf/web/apache2.conf
I have restart Apache, verify that Googlebot is passed on my server in logs.<VirtualHost 195.007.007.007:8080>
ServerName mydomain.com
ServerAlias http://www.mydomain.com
ServerAdmin [email protected]
DocumentRoot /home/admin/web/mydomain.com/public_html
ScriptAlias /cgi-bin/ /home/admin/web/mydomain.com/cgi-bin/
Alias /vstats/ /home/admin/web/mydomain.com/stats/
Alias /error/ /home/admin/web/mydomain.com/document_errors/
#SuexecUserGroup admin admin
CustomLog /var/log/apache2/domains/mydomain.com.bytes bytes
CustomLog /var/log/apache2/domains/mydomain.com.log combined
ErrorLog /var/log/apache2/domains/mydomain.com.error.log
# RAJOUT WATUSSIBOX
LogFormat "%h|||%{Referer}i|||%{User-Agent}i|||%V|||%r|||%>s|||%D" watussi_format
SetEnvIf User-Agent "Googlebot/2.1" watussi_log
SetEnvIf Referer "google.*q=" watussi_log
CustomLog "|/home/admin/web/watussibox.myservicedomain.fr/public_html/watussi_log.php" watussi_format env=watussi_log
<Directory /home/admin/web/mydomain.com/public_html>
AllowOverride All
Options +Includes -Indexes +ExecCGI
</Directory>
<Directory /home/admin/web/mydomain.com/stats>
AllowOverride All
</Directory>
<IfModule mod_ruid2.c>
RMode config
RUidGid admin admin
RGroups www-data
</IfModule>
<IfModule itk.c>
AssignUserID admin admin
</IfModule>
IncludeOptional /home/admin/conf/web/apache2.mydomain.com.conf*
But Watussibox don't display the passage of Googlebot.
Some help?
Thx.
Last edited by floown on Thu Jun 16, 2016 9:23 am, edited 1 time in total.
Re: /etc/apache2/sites-available/default
Try comment default log and use WatussiBox logs.
or you can try to ask Watussi for help, they know their script better I think )
Code: Select all
#CustomLog /var/log/apache2/domains/mydomain.com.bytes bytes
#CustomLog /var/log/apache2/domains/mydomain.com.log combined
Re: /etc/apache2/sites-available/default
Ok, comment these lines works. But how can I keep the log. It's for Awstats, it does not work now.
Thx for your help.
Thx for your help.
Re: /etc/apache2/sites-available/default
As far I see Awstats need logs and Watussibox need too, logs in different format and something you need choose :(floown wrote:Ok, comment these lines works. But how can I keep the log. It's for Awstats, it does not work now.
Re: /etc/apache2/sites-available/default
Ok, so I choose to snif Googlebot. For my logs I'll use Piwik and Google Analytics.
Have a nice day :)
Have a nice day :)
Re: /etc/apache2/sites-available/default
Ok,floown wrote:Ok, so I choose to snif Googlebot. For my logs I'll use Piwik and Google Analytics.
Have a nice day ;)