apache2.2 到 2.4后配置文件需要更改的部分
2016-02-28 20:45
585 查看
参考: http://www.dotblogs.com.tw/maple ... e24_httpd_conf.aspx
1. 访问控制
2.2 的时候
Order deny,allow
Deny from all
在 2.4 需要改成
Require all denied
常用的配置有:
Require all denied
Require all granted
Require host xxx.com
Require ip 192.168.1 192.168.2
Require local
2. RewriteLogLevel 变为:logLevel
如,LogLevel warn rewrite: warn
3. Namevirtualhost 被移除
4. 网站压缩,除了使用mod_deflate,还要mod_filter
使用ssl,除了使用mod_ssl,还需要mod_socache_shmcb
1. 访问控制
2.2 的时候
Order deny,allow
Deny from all
在 2.4 需要改成
Require all denied
常用的配置有:
Require all denied
Require all granted
Require host xxx.com
Require ip 192.168.1 192.168.2
Require local
2. RewriteLogLevel 变为:logLevel
如,LogLevel warn rewrite: warn
3. Namevirtualhost 被移除
4. 网站压缩,除了使用mod_deflate,还要mod_filter
使用ssl,除了使用mod_ssl,还需要mod_socache_shmcb
相关文章推荐
- 为Mac自带的Apache配置PHP和虚拟机
- Apache Commons Math3学习笔记(2) - 多项式曲线拟合(转)
- php\symfony3 学习记录(二)Apache服务器配置&创建第一个网页
- linux/mac apache 的配置文件和安装位置
- Mac OS X上搭建Apache、PHP、MySQL的Web服务器
- apache CXF wsdl2java工具的使用
- Apache commons 工具集简介
- Apache的工作模式prefork、worker、event
- Spark-->combineByKey【请阅读Apache spark官方文档】
- ubuntu14.04 apache2 CGI 入门实战
- 编译安装 apache+mysql+php 详细步骤
- [HBase] ERROR:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- Apache James搭建内网邮件服务器
- <? extends SomeClass>与<T extends SomeClass>的区别
- Apache-DbUtils学习
- 译:在ASP.NET MVC5中如何使用Apache log4net 类库来记录日志
- 基于 Apache 在本地配置多个虚拟主机
- 离线安装 Apache Ambari
- apache几种限制ip的方法
- apache的order allow deny