Solution
I have found a solution...
I post the complete explanation here. Sorry for my BAD english
THIS PROCEDURE IS BASE ON THE DESCRIBED AT
http://pstree.org/news/show/28
=======================================================
Objective
=======================================================
Implement dynamic awstats satistics in order to have access to previous
moth stats.
The actual static statistics are accessible at
https://domain.ltd/plesk-stat
and protected with user/pass (the same FTP user/pass for the domain)
The new dynamic statistics will be accessible at
https://domain.ltd/dyn-stat
and protected with user/pass (the same FTP user/pass for the domain)
The dynamic statistics also will can be accessed directly to
https://domain.ltd/awstats/awstats.pl?config=domain.ltd-httpd
but you can create a nice HTML page with the menu, instructions and
links to different statistics (web, ssh web, ftp and anon_ftp) and locate
it to dyn-stat directory. Of course
https://domain.ltd/awstats/ is
also protected with the same user/pass
=======================================================
I assume that:
=======================================================
A.- The domain for wich the dynamic statistics will be activated is domain.ltd
B.- It is hosted at /srv/www/vhosts/domain.ltd
C.- statistics are generated every night by plesk at
/srv/www/vhosts/domain.ltd/statistics/webstat
/srv/www/vhosts/domain.ltd/statistics/webstat-ssl
/srv/www/vhosts/domain.ltd/statistics/ftpstat
(I avoid anon_ftpstat because I have disabled it)
D.- Their apache configuration files are stored at /srv/www/vhosts/domain.ltd/conf
E.- The user of this domain is userdomain (group psacln & psaserv)
F.- The awstats configuration files are stored at /usr/local/psa/etc/awstats/
and the files are of the form
awstats.domain.ltd-http.conf (web stats config file)
awstats.domain.ltd-https.conf (web ssl stats config file)
awstats.domain.ltd-ftp.conf (ftp stats config file)
I have them with options AllowFullYearView=0 and
ShowFlagLinks = "es ca en gl fr en" (these are the only
options that I have changed from estandar file)
G.- CGI files of awstat are locaetd at /srv/www/cgi-bin
(awstats.pl, lib directory and plugins directory)
H.- Username/password for the user of the domain is stored
by plesk at /srv/www/vhosts/domain.ltd/pd/d..httpsdocs@plesk-stat
I.- Apache (Apache2) can be reloaded nicely executing
/etc/init.d/apache2 reload
J.- websrvmng is located at /usr/local/psa/admin/sbin/websrvmng
=======================================================
Procedure:
=======================================================
1.- Make accessible the directories named at point C for the user userdomain
In my case I needed to change the permissions of /srv/www/vhosts/domain.ltd/statistics
directory to 755 (it has 550). This directory owns to root

saserv. The user
can not change or add anything here, he/she only can explore it by ftp (nevertheless
this directory is accessible by protected URL
https://domain.ltd/plesk-stat then, nothing
new is discovered to the user)
2.- Create a new directory in which locate awstats CGI. This new directory is
/srv/www/vhosts/awstats
awstats: drwxr-xr-x root root
inside awstats:
domain.ltd: drwxr-xr-x userdomain psaserv
inside domain.ltd:
awstats: drwxr-xr-x userdomain psaserv
/srv/www/vhosts/awstats -> Will contain all domain.ltd
/srv/www/vhosts/awstats/domain.ltd -> Here I put the hml pages that allow
to the user to change the language and the kind of stat to view (ftp, ssl, web).
these pages are pages that I have created to my customers and they show my company logo, etc
/srv/www/vhosts/awstats/domain.ltd/awstats -> Here I copy the awstats perl,
libraries, plugins and symlinks to configuration files (see next point)
3.- Copy awstats cgi to /srv/www/vhosts/awstats/domain.ltd/awstats
from /srv/www/cgi-bin
cp -a /srv/www/cgi-bin/* /srv/www/vhosts/awstats/domain.ltd/awstats
(in my case I have also php5 in this directory, then I remove it from
destination)
4.- Change the owner of these files
cd /srv/www/vhosts/awstats/domain.ltd/awstats
chown -R userdomain

sacln *
5.- Create symbolic "soft" lynks to the awstats confguration files
ln -s /usr/local/psa/etc/awstats/awstats.domain.ltd-ftp.conf awstats.domain.ltd-ftp.conf
ln -s /usr/local/psa/etc/awstats/awstats.domain.ltd-http.conf awstats.domain.ltd-http.conf
ln -s /usr/local/psa/etc/awstats/awstats.domain.ltd-https.conf awstats.domain.ltd-https.conf
6.- Create (or modify) configuration files vconf.conf and vconf_ssl.conf.
cd /srv/www/vhosts/domain.ltd/conf
ls
look if vconf.conf and vconf_ssl.conf exists. If they don't exist create
them, otherwise modify them. The content (or added content) is:
----------------------------------
vhost.conf
----------------------------------
Redirect permanent /dyn-stat
https://domain.ltd/dyn-stat
----------------------------------
----------------------------------
vhost_ssl.conf
----------------------------------
Alias /dyn-stat/ /srv/www/vhosts/awstats/domain.ltd/
Alias /dyn-stat /srv/www/vhosts/awstats/domain.ltd/
<Directory "/srv/www/vhosts/awstats/domain.ltd/">
AuthType Basic
AuthName "Dyn-Stat"
AuthUserFile /srv/www/vhosts/domain.ltd/pd/d..httpsdocs@plesk-stat
require valid-user
</Directory>
ScriptAlias /awstats/ /srv/www/vhosts/awstats/domain.ltd/awstats/
<Directory "/srv/www/vhosts/awstats/domain.ltd/awstats/">
Options +ExecCGI
</Directory>
----------------------------------
7.- Reconfigure conf files and reload apache. If you wish to reconfigure the
apache configuration files for all domains
/usr/local/psa/admin/sbin/websrvmng -av
If you wish to reconfigure the apache conf file for one domain
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.ltd
/etc/init.d/apache2 reload
8.- Create an index.html file located at
/srv/www/vhosts/awstats/domain.ltd
to link to
Web Stats -> /awstats/awstats.pl?config=domain.ltd-http
Web SSL Stats -> /awstats/awstats.pl?config=domain.ltd-https
FTP Stats -> /awstats/awstats.pl?config=domain.ltd-ftp
Optional: create directories
/srv/www/vhosts/domain.ltd/httpsdocs/dyn-stat: drwxr-xr-x root:root
/srv/www/vhosts/domain.ltd/httpdocs/dyn-stat: drwxr-xr-x root:root
To avoid that the user will create one directory with the same name because any directory with
this name will not be accessible from web (in some sense vhosts.conf and vhosts_ssl.conf
has more "privileges" that the user)
Note: To cancel the access to this dynamic stats to a domain, simply
rename vhosts.conf and vhosts_ssl.conf and execute point 7
===========================================================
FUTURE IMPROVEMENTS
===========================================================
Automatize the process for new domains...