编辑“虚拟主机配置文件”在CustomLog那一行下面加入文档<IfModulemod_expires.c>##这里用mod_expires.c模块ExpiresActiveonExpiresByTypep_w_picpath/gif"accessplus1days"ExpiresByTypep_w_picpath/jpeg"accessplus24hours"ExpiresByTypep_w_picpath/png"accessplus24h..
分类:
Web程序 时间:
2015-07-11 18:47:23
阅读次数:
149
Apache配置文件详解之httpd.conf(1)一.Apache主配置文件为:http.conf文件,下面我们来依次介绍httpd.conf文件中每一项说明1.1ServerRoot配置【ServerRoot""主要用于指定Apache的安装路径,此选项参数值在安装Apache时系统会自动把Apache的路径写入。Windows安装时,该选项的..
分类:
Web程序 时间:
2015-07-10 19:17:23
阅读次数:
160
【apache配置参数备注】1、KeepAlive On/Off KeepAlive指的是保持连接活跃,类似于Mysql的永久连接。换一句话说,如果将KeepAlive设置为On,那么来自同一客户端的请求就不需要再一次连接,避免每次请求都要新建一个连接而加重服务器的负担。一般情况下,图片较多的网站....
分类:
Web程序 时间:
2015-07-10 09:21:07
阅读次数:
158
源地址:http://www.itokit.com/2011/0430/65992.htmlApache支持include文件解析shtml首先要应该修改Apache配置文件httpd.conf1. 确认加载include.so模块,将注释去掉:LoadModule include_module l...
分类:
Web程序 时间:
2015-07-09 11:13:45
阅读次数:
152
作者:小波QQ:463431476redhat6.4企业版用的centos的yum源。下面进行apache的安装与配置。1、yum在线安装Apache命令:yum install httpd* -y2、启动httpd服务命令:/etc/init.d/httpd restart出现如图情况:要修改主机...
分类:
Web程序 时间:
2015-07-09 00:36:15
阅读次数:
149
1 在Ubuntu系统的/etc/hosts文件中添加域名指向IP
2 在Apache中配置虚拟主机
在Apache的虚拟主机配置文件夹sites-available中将默认的配置default赋值一份需要添加的模块vedio,然后对vedio进行修改:
(1) 添加:ServerName vedio.xiongchao.net.cn...
分类:
Web程序 时间:
2015-06-30 15:02:24
阅读次数:
169
apache配置httpd.conf#监听端口设置Listen 80Listen 12.34.56.78:88#打开http代理模块LoadModule proxy_http_module modules/mod_proxy_http.so#主机邮箱设置ServerAdmin postmaster@...
分类:
其他好文 时间:
2015-06-28 14:01:48
阅读次数:
221
一 准备1 下载apache http://httpd.apache.org/download.cgi#apache24 httpd-2.2.22-win32-x86-openssl-0.9.8t.msiopenssl表示带有openssl模块,利用openssl可给Apache配置SSL安全链接2...
分类:
数据库 时间:
2015-06-24 10:57:27
阅读次数:
222
1. Apache配置文件httpd.conf最后面添加TraceEnable off2.ThinkPHP在header头中会添加X-Powered-By: ThinkPHP,需要在Think/Core/View.class.php中搜索注释掉3.httponly必须开启4. 隐藏头部Server版...
分类:
其他好文 时间:
2015-06-22 20:38:39
阅读次数:
133
一、环境系统:CentOS6.4x64最小化安装IP:192.168.3.67二、安装配置epel源[root@svn~]#rpm-ivhhttp://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrievinghttp://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
warning:/var/..
分类:
Web程序 时间:
2015-06-16 19:35:23
阅读次数:
804