apache多用户虚拟机配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 <VirtualHost *:80> ServerAdmin webmaster@xxxx.com DocumentRoot "/home/httpd/xxxx.com/wwwroot" ServerName xxxx.com ServerAlias www.xxxx.com *.xxxx.com...
View Articleeaccelerator 0.9.6.x BUG:开启php的open_basedir报错
根据张宴的《 Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版)》, 配置了LNMP环境,并更换其中的非最新稳定版的软件,另额外装了memcached及snmp 随后打开php.ini中的open_basedir,值为:“/网址根目录/:/var/tmp/:/tmp/” 发现php报错:PHP Warning: Unknown:...
View Articlephp fpm启动失败,日志libevent:entering main loop
启动php-fpm,提示failed 由于配置文件php-fpm.conf和启动文件php-fpm的pid文件路径不一致导致 只需将它们改为一致性即可
View Article解决php报错:Cannot find save handler ‘eaccelerator’
版本:eaccelerator 0.9.5.3 症状:php无法调用eaccelerator_get等api函数,但phpinfo中显示eaccelerator已成功加载 原因:0.9.5.x版本默认不支持shared-memory...
View Article解决nginx+php5.3 fpm:no input file specified
症状:头部返回404错误,内容返回“no input file specified” 原因:php-fpm无法访问php文件 解决方法: 第一步:检查nginx的fastcgi_param SCRIPT_FILENAME的值是否正确(可将SCRIPT_FILENAME的值输到日志中确认)...
View Article一些header说明
X-Content-Type-Options:nosniff 作用:对版本>=8的IE浏览器关闭自动判断文件类型的功能 例子:一个txt的文件,内容是html,在一般情况下,会显示为html页面,若设置X-Content-Type-Options:nosniff,则显示为文本 兼容性:只支持IE8及以上版本的IE X-XSS-Protection:1; mode=block...
View Article[转]HTTP头的Expires与Cache-control
转自:http://www.cnblogs.com/yuyii/archive/2008/10/16/1312238.html 1.概念 Cache-control用于控制HTTP缓存(在HTTP/1.0中可能部分没实现,仅仅实现了Pragma: no-cache) 数据包中的格式: Cache-Control: cache-directive cache-directive可以为以下:...
View Article
More Pages to Explore .....