先谈谈senginx,来自官方的资料:SEnginx(Security Enhanced NGINX)开源项目由东软集团网络安全事业部(security.neusoft.com)发起。SEnginx是一个基于NGINXWAF(Web Application Firewall)服务器,能以Web Server或HTTP反向代理两种模式进行部署。SEnginx继承了NGINX的全部功能,集成了多种第三方Web安全(ModSecurityNaxsi)和负载均衡模块,并新研发了多种Web安全功能。
参考:Senginx


SeNginx安装

安装过程非常简单,和其他软件的源代码编译并无区别:

1
2
3
4
5
wget http://senginx.org/download/senginx-1.4.3.tar.gz
tar -xzvf senginx-1.4.3.tar.gz
./se-configure.sh --prefix=/opt/nginx #/opt/nginx 是你安装的位置,在ubuntu下我比较习惯安装到/opt下,而centos则比较习惯安装在/usr/local下面
make
sudo make install

就这几步,即可编译安装好senginx,安装完成后,首先执行:

1
/opt/nginx/sbin/nginx

执行以上命令两次,第一次执行是创建目录以及初始化环境,第二次执行就会开启nginx服务,监听80端口

1
2
3
4
5
6
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()


PHP以及MYSQL的安装

这两软件就在各自官方下载,你可以选择采用源代码编译,或者是通过apt-get或者yum的方式安装,我的环境是Ubuntu 13.10,采用apt-get 进行安装:

1
sudo apt-get install php5-cgi php5-cli mysql-server-5.5 spawn-fcgi


基本配置

….更新中