# wget http://dominia
# tar xzf mod_limitipconn
# cd mod_limitipconn
# vi Makefile
APXS = /usr/sbin/apxs
# make
# make install
讓APACHE支持這個模塊
# vi /var/www/conf/httpd
<IfModule mod_limitipconn
<Location />
MaxConnPerIP
</Location>
</IfModule>
到次整個安裝過程結束
附件部分
我們為讓APACHE支持SSL傳輸配置APACHE:
# vi /var/www/conf/httpd
添加下面兩行
SSLCertificateFile /etc/ssl/server
SSLCertificateKeyFile /etc/ssl/private/server
為了使APACHE啟動時啟用SSL
# vi /etc/rc
改
httpd_flags=
為
httpd_flags=
手動啟動和關閉APACHE這樣做就可以了
# apachectl startssl
# apachectl stop
下面是設置APACHE+SSL的過程
# /usr/sbin/openssl genrsa
# /usr/sbin/openssl req
這裡自己填寫一些注冊信息
# /usr/sbin/openssl x
NameVirtualHost
<VirtualHost
ServerAdmin llzqq@
DocumentRoot /var/www/llzqq
ServerName llzqq
ErrorLog logs/llzqq
CustomLog logs/llzqq
SSLEngine on
SSLCipherSuite ALL:!ADH:RC
SSLCertificateFile /etc/ssl/virtualsite
SSLCertificateKeyFile /etc/ssl/private/server
</VirtualHost>
<VirtualHost
ServerAdmin llzgg@
DocumentRoot /var/www/llzgg
ServerName llzgg
ErrorLog logs/llzgg
CustomLog logs/llzgg
</VirtualHost>
[
From:http://tw.wingwit.com/Article/program/MySQL/201311/29661.html