标签 nginx 下的文章
Awstats的LogFormat配置和nginx的LOGFORMAT
nginx LogFormat:
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
Awstats LogFormat:
LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot %otherquot"
Nginx Perl FastCGI
apt-get install libfcgi-perl
wget http://www.l-yp.com/usr/uploads/2012/12/979355951.pl -O /usr/bin/fastcgi-wrapper.pl
wget http://www.l-yp.com/usr/uploads/2012/12/3334648281.txt -O /etc/init.d/perl-fcgi
chmod +x /usr/bin/fastcgi-wrapper.pl
chmod +x /etc/init.d/perl-fcgi
update-rc.d perl-fcgi defaults
insserv perl-fcgi
nginx 编译选项
configure 脚本确定系统所具有一些特性,特别是 nginx 用来处理连接的方法。然后,它创建 Makefile 文件。
configure 支持下面的选项:
--prefix=
编译nginx出错解决
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=