Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

[Solved] /etc/apache2/sites-available/default

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Locked
  • Print view
Advanced search
6 posts • Page 1 of 1
floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
[Solved] /etc/apache2/sites-available/default

Post by floown » Tue Jun 14, 2016 3:27 pm

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
<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*
I have restart Apache, verify that Googlebot is passed on my server in logs.

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: /etc/apache2/sites-available/default

Post by skurudo » Wed Jun 15, 2016 12:57 pm

Try comment default log and use WatussiBox logs.

Code: Select all

#CustomLog /var/log/apache2/domains/mydomain.com.bytes bytes
#CustomLog /var/log/apache2/domains/mydomain.com.log combined
or you can try to ask Watussi for help, they know their script better I think )
Top

floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: /etc/apache2/sites-available/default

Post by floown » Wed Jun 15, 2016 10:34 pm

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: /etc/apache2/sites-available/default

Post by skurudo » Thu Jun 16, 2016 8:33 am

floown wrote:Ok, comment these lines works. But how can I keep the log. It's for Awstats, it does not work now.
As far I see Awstats need logs and Watussibox need too, logs in different format and something you need choose :(
Top

floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: /etc/apache2/sites-available/default

Post by floown » Thu Jun 16, 2016 9:23 am

Ok, so I choose to snif Googlebot. For my logs I'll use Piwik and Google Analytics.

Have a nice day :)
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: /etc/apache2/sites-available/default

Post by skurudo » Thu Jun 16, 2016 10:20 am

floown wrote:Ok, so I choose to snif Googlebot. For my logs I'll use Piwik and Google Analytics.
Ok,

Have a nice day ;)
Top


Locked
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password