Recently has been playing nginx, found him with fcgi relative to Apache is indeed a more suitable for the site of the Web proxy, in my 512M memory VPS on the initial configuration of the first running Lamp open service instant memory is directly occupied, but the LNMP occupies more than 100 m, And the speed of access is also faster than Apache some, Apache really good optimization optimization.
Here by the way the Awstats configuration from Apache to Nginx, for your reference.
My blog new station has been built, more new content will be updated at the new station.
Welcome to visit http://www.showerlee.com
System Environment: centOS6.3
nginx:nginx-1.41
awstats:awstats-7.1.1
I. Download extract Awstats to system directory
# wget Http://sourceforge.net/projects/awstats/files/AWStats/7.1.1/awstats-7.1.1.tar.gz/download
# TAR-ZXVF Awstats-7.1.1.tar.gz-c/usr/local/
# cd/usr/local/
# MV awstats-7.1.1 Awstats
# CD awstats/tools/
Two. Generate configuration file:
# Perl awstats_configure.pl
------------------------------
-----AWStats Awstats_configure 1.0 (Build 1.9) (c) Laurent destailleur-----
This tool would help you to the Configure AWStats to analyze statistics for
One Web server. You can try to use it for let it does all this is possible
In AWStats Setup, however following the "step" by step Manual setup
Documentation (docs/index.html) is often a better idea. Above All if:
-You are are not a administrator user,
-Want to analyze downloaded log files without Web server,
-Want to analyze mail or FTP log files instead of Web log files,
-Need to analyze load balanced servers log files,
This column more highlights: http://www.bianceng.cn/Servers/web/
-Want to ' understand ' all possible ways to use AWStats ...
Read the AWStats documentation (docs/index.html).
-----> Running OS detected:linux, BSD or Unix
-----> Check for Web Server install
Enter full config file path of your WEB server.
Example:/etc/httpd/httpd.conf
Example:/usr/local/apache2/conf/httpd.conf
Example:c:\program Files\apache group\apache\conf\httpd.conf
Config file path (' None ' to skip Web server Setup):
> None
Your Web server config file (s) could not is found.
You'll need to the setup your Web server manually to declare AWStats
Script as a CGI, if you are want to build reports dynamically.
AWStats Setup documentation (file docs/index.html)
-----> Update Model config file '/usr/local/awstats/wwwroot/cgi-bin/awstats.model.conf '
File awstats.model.conf updated.
-----> Need To create a new config file?
Do and want me to build a new AWStats Config/profile
File (required if install) [y/n]? Y
-----> Define Config file name to create
What is the name of your Web site or profile?
Example:www.mysite.com
Example:demo
Your Web site, virtual server or profile name:
> www.abc.com.cn
-----> Define Config file path
In which directory your config file (s)?
Default:/etc/awstats
Directory path to store config file (s) (Enter for default): Enter
>
-----> Create config file '/etc/awstats/awstats.www.showerlee.com.conf '
Config file/etc/awstats/awstats.www.showerlee.com.conf created.
-----> ADD Update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
Can do it manually by adding the following command to your cron:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl-update-config=www.showerlee.com
Or If you have several config files and prefer have only one command:
/usr/local/awstats/tools/awstats_updateall.pl now
Press ENTER to continue ... Enter
A Simple config file has been created:/etc/awstats/awstats.www.showerlee.com.conf
You are should have a look inside to check and change manually main parameters.
can then manually update your statistics for ' www.showerlee.com ' with command:
> Perl awstats.pl-update-config=www.showerlee.com
can also build static on pages for ' www.showerlee.com ' with command:
> Perl awstats.pl-output=pagetype-config=www.showerlee.com
Press ENTER to finish ... Enter
----------------------
All the way to the default carriage return to complete the Awstats Profile Wizard, which is saved under/etc/awstats/