Apache相关知识整理
Apache反向代理:
ProxyRequests Off ProxyPass /abc/ http://127.0.0.1/abc/ ProxyPassReverse /abc/ http://127.0.0.1/abc/
?
?
Apache虚拟主机:
<VirtualHost *> ServerAdmin ***@bwl.com DocumentRoot /search/apache/htdocs/bwl/ ServerName bwl.com ServerAlias img1.bwl.com img2.bwl.com DirectoryIndex home.html rewriteengine on rewriterule ^/abc/(\d+)\.html /a?id=$1&${query_string} [QSA,pt]</VirtualHost>
?
?
Gzip配置:
SetOutputFilter DEFLATEAddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript
?
?
流量限制:
#mod_bwLoadModule bw_module modules/mod_bw.soBandwidthModule OnForceBandWidthModule On<Location /rss/abc> #for Others Bandwidth all 5120 MaxConnection all 10 BandWidthError 510</Location>?引入其他配置:
include myconf/*.conf?
?
?
?