![]() ![]() Use Apache's own tool htpasswd to generate a username and password In order to be safe, the general manager is not allowed to look at this information outside casually, here we need to make a security setting.Īwstats itself does not have any restrictions on access, so we have to implement it through the Apache mechanism, and add the following configuration at the end of nf: Logfile= "D:/apache2.2/logs/bbs/access_%yyyy_%mm_?.log" The configuration of the other sites is then set to: You can override the default inconsistent configuration with the following options. Here is another way to manage the management, using the configuration file contains the features, so we can configure a common configuration, For example: If there is a new site to add, just follow the above actions to copy one again, modify the relevant configuration information. Restart Apache, enter you can see the website log viewing interface. Generally modified files are nf and extra/nf two files. This log configuration allows Apache to generate a new log file every day, where%y%m%d is the day of the month. For example:Ĭustomlog "|bin/rotatelogs.exe d:/apache2.2/logs/www/access_%y_%m_%d.log 86400 480" combined The default configuration for Customlog is common, instead of combined, which is the awstats recommended way to analyze the type of client browser and access the source. ![]() In addition, by default, the log analysis information is not allowed to be updated directly via the Web page, where the value of Allowtoupdatestatsfrombrowser is changed to 1 Here must pay attention to the format of the log, to ensure that the virtual host log file name format and the format of the same can be. Logfile= "D:/apache2.2/logs/www/access_%yyyy_%mm_?.log" The Web log is analyzed here, so modify the Logtype=w, Change the default language to Chinese, modify the language one,lang= "Auto", "Auto" to "cn", let Awstats work in Chinese mode. There is no way to do this without modification.Īdd a new site configuration file, copy the file (D:\site\awstats-7.0\and modify the Logfile,sitedomain,logtype three instructions in the configuration file. Modify the Perl path in the file, open the D:\site\awstats-7.0\wwwroot\cgi-bin\ file with Notepad, and change the first line #!/usr/bin/perl to In fact, adding to the specific virtual host configuration is also OK. #Directives to allow use of AWStats as a CGI#Alias/awstatsclasses"d:/site/awstats-7.0/# This are to permit URLs access to Scripts/filesinchAWStats directory.#Options noneallowoverride noneorder allow,denyallow from all In this case, the following configuration information is automatically added to the nf file: The direct input "n" here, we manually to configure it, and then two times the return on it. Open the D:\server\awstats-7.5\tools folder, double-click Execute awstats_, follow the prompts to enter your Apache installation environment and nf file location, The following is my native environment: I installed here: D:\server\Perl64.Īwstats download is a zip file, directly extracted to a specific directory, such as: D:\server\awstats-7.5.īecause of my own configuration process, forget, so borrowing reference information, the process is the same.ġ. I downloaded to the MSI file, the installation of no technical content, the next step is good, in addition to the installation to a specific directory. The Apache already exists, so this document is ignored. Jawstats, this is auxiliary, I do not use it for the time being. Looked up all kinds of information, start again.Īwstats is written in Perl, so you need to install ActivePerl (). Today, while the weekend, re-configure Awstats, feeling a little strange. The recent site a few activities, understand the slow access, and realized that the addition of log analysis tools. Website on the line for several months, because there has been no traffic and busy with all kinds of trivial work, has not been to Apache plus awstats for log analysis. Also changed the work, and have to use Apache, this version of the update to 2.4, the configuration is slightly different, the other articles are listed again. Before windows with Apache, also once configured Awstats, and then changed the work, switch to Linux nginx, gradually forget Apache. ![]()
0 Comments
Leave a Reply. |