This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sermn_wiki:userpages:marta:awstats [2008/11/14 11:44] marta creat |
sermn_wiki:userpages:marta:awstats [2020/07/09 12:12] (current) miquel [Estadístiques dels servidors] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Estadístiques del servidor amb AwStats | + | ====== Estadístiques |
+ | |||
+ | <WRAP todo> | ||
+ | Falten estadístiques | ||
+ | </ | ||
+ | |||
+ | ===== Enllaços des de la xarxa local (sermn.net) ===== | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ===== Enllaços des de la xarxa externa (uab.cat) ===== | ||
+ | |||
+ | <WRAP important> | ||
+ | L' | ||
+ | < | ||
+ | < | ||
+ | AllowOverride None | ||
+ | Order deny, | ||
+ | Deny from all | ||
+ | Allow from 127.0.0.0/ | ||
+ | Allow from sermn02.uab.cat | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | |||
+ | ====== Estadístiques | ||
Després de comparar diferents Web Statistics Tools, al final ens hem decidit pel programa [[http:// | Després de comparar diferents Web Statistics Tools, al final ens hem decidit pel programa [[http:// | ||
Line 6: | Line 38: | ||
===== Enllaços d' | ===== Enllaços d' | ||
- | [[http:// | + | [[http:// |
- | [[http:// | + | [[http:// |
===== Configuració de l' | ===== Configuració de l' | ||
- | <note important> | + | ==== Configuració general ==== |
Amb la comanda '' | Amb la comanda '' | ||
+ | On per exemple s' | ||
- | # AWSTATS CONFIGURE FILE | + | <WRAP important> |
- | # | + | **Do you want me to build a new AWStats |
- | # Copy this file into awstats.www.mydomain.conf and edit this new config file | + | S'ha de contestar **N** |
- | # to setup AWStats | + | </WRAP> |
- | # The config file must be in /etc/ | + | |
- | # Unix/Linux) | + | |
- | + | ||
- | # | + | |
- | # | + | Un cop completada la instalació configurem l' |
- | # MAIN SETUP SECTION (Required to make AWStats work) | + | |
- | # | + | |
- | # "LogFile" | + | |
- | # Possible values: A full path, or a relative path from awstats.pl directory. | + | LogFile |
- | # Example: "/var/log/apache/access.log" | + | LogType = W # W - For a web log file |
- | # Example: | + | LogFormat = 1 # 1 - Apache or Lotus Notes/Domino native combined |
- | LogFile="/var/ | + | # |
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | # all other possible domain names, addresses or virtual host aliases | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | \\ | ||
+ | També hem d' | ||
- | # Enter the log file type you want to analyze. | + | |
- | # Possible values: | + | Alias /awstatscss "/ |
- | # W - For a web log file | + | Alias / |
- | # S - For a streaming log file | + | ScriptAlias /awstats/ "/ |
- | # M - For a mail log file | + | |
- | # F - For a ftp log file | + | < |
- | # | + | Options None |
- | LogType=W | + | AllowOverride None |
+ | Order allow, | ||
+ | Allow from all | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Options None | ||
+ | AllowOverride None | ||
+ | Order allow, | ||
+ | Allow from all | ||
+ | </ | ||
+ | |||
+ | Alias /awstats-icon/ / | ||
+ | < | ||
+ | Options None | ||
+ | AllowOverride None | ||
+ | Order allow, | ||
+ | Allow from all | ||
+ | </ | ||
+ | Per últim es crea un enllaç simbólic de la carpeta cgi-bin que awstats ens a creat a la ruta ''/ | ||
- | # Enter here your log format (Must match your web server config. See setup | + | ==== Virtual hosts ==== |
- | # instructions in documentation to know how to configure your web server to | + | |
- | # have the required log format). | + | |
- | # Possible values: 1,2,3,4 or " | + | |
- | # 1 - Apache or Lotus Notes/ | + | |
- | # 2 - IIS or ISA format (IIS W3C log format). See FAQ-COM115 For ISA. | + | |
- | # 3 - Webstar native log format. | + | |
- | # 4 - Apache or Squid native common log format (NCSA common/CLF log format) | + | |
- | # With LogFormat=4, some features (browsers, os, keywords...) can't work. | + | |
- | LogFormat=1 | + | |
- | # " | + | Per diferenciar entre diferents |
- | # server name, used to reach the web site. | + | |
- | # If you share the same log file for several | + | |
- | # parameter is used to tell AWStats | + | |
- | # this virtual host name only (So check that this virtual hostname can be | + | |
- | # found in your log file and use a personalized log format that include the | + | |
- | # %virtualname tag). | + | |
- | # | + | |
- | SiteDomain=" | + | |
+ | * **1.** Un únic fitxer log per tots del virtual hosts del servidor. Aleshores, l' | ||
- | # Enter here all other possible domain names, addresses or virtual host | + | * **2.** Un fitxer log per cadascun dels virtual hosts del servidor. Aleshores, l' |
- | # aliases someone can use to access your site. Try to keep only the minimum | + | |
- | # number of possible names/ | + | |
- | # | + | |
- | HostAliases=" | + | |
+ | En aquests cas s'ha optat per la segona opció, ja que tenim més control sobre el seu funcionament. | ||
+ | Primer de tot es necessari afegir la directiva '' | ||
- | # When AWStats updates its statistics, it stores results of its analysis in | + | Desprès s'ha de fer una copia de l' |
- | # files (AWStats database). All those files are written in the directory | + | |
- | # defined by the " | + | |
- | # you want AWStats to save its database and working files into. | + | |
- | # Warning: If you want to be able to use the " | + | |
- | # feature (see later), you need " | + | |
- | # directory (and " | + | |
- | # | + | |
- | DirData="/ | + | |
+ | Ara s'ha de modificar les directives '' | ||
- | # Relative or absolute web URL of your awstats | + | Per fer el primer registre d' |
- | # This parameter is used only when AWStats is run from command line | + | ''/ |
- | # with -output option (to generate links in HTML reported page). | + | El paràmetre |
- | # | + | |
- | DirCgi="/cgi-bin" | + | |
- | # Relative or absolute web URL of your awstats | + | Per acabar s'ha de dir-li a awstats |
- | # If you build static reports ("... -output > outputpath/ | + | Crear el fitxer |
- | # path of icon directory relative to the output directory | + | |
- | # | + | |
- | DirIcons=" | + | |
+ | 0, | ||
- | # | ||
- | # OPTIONAL APPEARANCE SETUP SECTION (Not required but increase AWStats features) | ||
- | # | ||
+ | ===== Veure les estadístiques ===== | ||
+ | Per veure les estadístiques només serà necessari cridar a l' | ||
- | # You can set Logo and LogoLink to use your own logo. | + | exemple: '' |
- | # Logo must be the name of image file (must be in $DirIcons/ | + | |
- | # LogoLink is the expected URL when clicking on Logo. | + | |
- | # Default: " | + | |
- | # | + | |
- | Logo=" | + | |
- | LogoLink=" | + | |
- | # Value of maximum bar width/ | ||
- | # Default: 260/90 | ||
- | # | ||
- | BarWidth | ||
- | BarHeight |