Warning: Undefined array key "cperpage" in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 230

Warning: Undefined variable $output in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 300

Warning: Undefined variable $fixed_tags in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 301

Warning: Undefined variable $isshowdots in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 302

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 305

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 308

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 311

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Undefined variable $more_text_link in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320
Web – 理想社会

CategoryWeb

nginx打开目录浏览功能

n

打开nginx.conf文件,在location server 或 http段中加入
autoindex on;
另外两个参数最好也加上去:
autoindex_exact_size off;
默认为on,显示出文件的确切大小,单位是bytes。
改为off后,显示出文件的大概大小,单位是kB或者MB或者GB
autoindex_localtime on;
默认为off,显示的文件时间为GMT时间。
改为on后,显示的文件时间为文件的服务器时间

Centos5.5下搭建Seedbox

C

之前转过一篇关于利用vps来刷pt流量的帖子,里面繁琐的编译安装着实麻烦。很多鞋童看着都头大。
今天无意间发现transmission更新到2.22。 令人兴奋的是竟然有了rpm安装包。下面我就说说如何安装transmission的rpm包吧。
Built on CentOS 5.5 i386 (libevent 2.0.10 compiled with “make verify” disabled):
如果你的系统是32位的,就下载以下5个文件。

已编译php的情况下,动态添加ftp扩展

编译php时没有加载ftp扩展 ,有什么方法么
已经在使用了
现在已经在跑网站了
编译php时没有加载ftp扩展 ,有什么方法么
能不在重新编译的情况下解决么
现在对方向要ftp 支持图片上传
# cd /usr/local/src/php-5.2.13/ext/ftp 进入源码目录的相应扩展模块文件夹
# /usr/local/php-5.2.13/bin/phpize 进入编译好的php相关目录,调用phpize程序生成编译配置文件

nginx中status的解释

n

nginx中有个status页面信息。以前一直没注意。今天‘狗狗’了一下。在此总结下心得。
nginx 服务器status页面信息如下:
Active connections: 220
server accepts handled requests
9975450 9975450 14928953
Reading: 1 Writing: 1 Waiting: 208

LNAMP 1.0 alpha 一键安装包

L

LNAMP 1.0 final changelog: 1、将setupvm-without-pure- ftp.sh和setupvm-with-pure-ftp.sh两个文件合并为setup-vhost.sh一个文件,执行./setup- vhost.sh后将会有1. setup virtual host without using ftp service和2. setup virtual host with ftp service两个选项,从而根据需要创建自己的虚拟主机; 2、将beta版中的suhosin extension改为了suhosin patch; 3、将CentOS、Debian和Ubuntu下的安装文件集中压缩成一个包LNAMP_1.0_final.tar.gz; 4、规范书写了程序,增强了兼容性(尤其是增加了对burst.net vps的支持);...

lamp安全加固

l

apache方面:
1.修改banner
编译源代码,修改默认的banner
ServerTokens ProductOnly
ServerSignature Off
在apache的源码包中找到ap_release.h将
#define AP_SERVER_BASEPRODUCT “Apache”
修改为
#define AP_SERVER_BASEPRODUCT “Microsoft-IIS/6.0”
os/unix下的os.h文件
#define PLATFORM “Unix”
修改为
#define PLATFORM “Win32“

查看Apache并发请求数及其TCP连接状态

[文章作者:张宴 本文版本:v1.1 最后修改:2007.07.27 转载请注明出处:] 这两天搭建了一组Apache服务器,每台服务器4G内存,采用的是prefork模式,一开始设置的连接数太少了,需要较长的时间去响应用户的请求,后来修改了一下Apache 2.0.59的配置文件httpd.conf: # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # MaxClients: maximum number...

nginx实现404状态返回200隐藏URL

n

server
{
listen       80;
server_name  aaa.bbb.com;
charset gb2312;
index index.php index.html;
root   /data/www/wwwroot/aaa.bbb.com;
error_page 404 =200 /.404.jpg;
//注:上传一个404.jpg文件到aaa.bbb.com的根目录, 并改名为.404.jpg

Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器

N

[文章作者:张宴 本文版本:v6.0 最后修改:2010.03.04 转载请注明原文链接:]
前言:本文是我撰写的关于搭建“Nginx + PHP(FastCGI)”Web服务器的第6篇文章。本系列文章作为国内最早详细介绍 Nginx + PHP 安装、配置、使用的资料之一,为推动 Nginx 在国内的发展产生了积极的作用。本文可能不断更新小版本,请记住原文链接“”, 获取最新内容。第6篇文章主要介绍了Nginx 0.8.x新的平滑重启方式,将PHP升级到了5.2.13,修正了PEAR问题。另将MySQL 5.1.x升级到了5.5.x系列,配置文件变更较大。

Your sidebar area is currently empty. Hurry up and add some widgets.