摘要:windwos中使用Apache 的压力测试ab 01) 安装Apache,此处不详细讲解 02) 使用ab 查看ab版本,在Apache的bin 目录下面 执行 ./ab -V 在Apache的bin 目录下面 执行 ./ab -n100 -c50 http://127.0.0.1:80/
阅读全文
摘要:Apache 开启gzip压缩 01) 开启模块 LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule filter_module mo
阅读全文
摘要:Apache 配置https 自签名证书 或者 购卖证书 购卖证书配置 <VirtualHost _default_:443> SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!E
阅读全文
摘要:Apache httpd和php的结合方式 默认的,httpd和php结合方式分为两大类,DSO和FCGI。 DSO方式,php作为httpd的模块 FCGI方式,使用php-fpm单独管理php进程池 参考地址: httpd和php的结合方式 其他: Apache 参考文章 Apache之Rewr
阅读全文
摘要:Apache 使用fcgi 解析PHP httpd.conf 文件 <VirtualHost *:80> #ServerAdmin webmaster@localhost ServerName www.afei.com DocumentRoot /data/www #主要是这2个配置 ProxyRe
阅读全文
摘要:Apache 添加自定义vhost 目录,等其他配置 1、在 Apache 下找到 httpd.conf ,这个文件中找到默认 Include conf/vhosts.conf , 在这个之后添加 Include conf/self_vhosts/*.conf 我的配置: Include conf/
阅读全文