ericyuan

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Apache

摘要:方法一:安装宝塔一键搞定 方法二: 安装httpd 安装php7.0 关联php7.0与httpd 安装ionCube Loader 阅读全文
posted @ 2018-06-13 08:41 ericyuan 阅读(310) 评论(0) 推荐(0)

摘要:找到apache安装目录下的 httpd.conf 文件 修改或增加这一句 AddDefaultCharset GB2312 ps:刚刚装好的Apache2.2的httpd.conf文件中是没有“AddLanguage”或“AddCharset”的,直接在文件末尾添加就行了。 阅读全文
posted @ 2016-02-16 16:36 ericyuan 阅读(211) 评论(0) 推荐(0)

摘要:问题起因:网页上传大文件,post_max_size设置为 2GB; 表单使用 "enctype=multipart/form-data" 无问题; 使用默认值时,导致页面$_post值为空#解决方法:不使用简写法,不要偷懒,写全post_max_size = 2147483648B引述另一篇文章,别人发现的规律1. post_max_size 使用简写法,且值等于或超过 2G 时,application/x-www-form-urlencoded 形式的 POST 数据会被丢失而无法获取。(比如 2G 会出现此问题,但 2147483648 却不会有问题)2. uploa 阅读全文
posted @ 2012-10-22 10:25 ericyuan 阅读(672) 评论(0) 推荐(0)

该文被密码保护。
posted @ 2012-07-25 15:39 ericyuan 阅读(32) 评论(0) 推荐(0)

摘要:httpd.conf配置文件里,千万记得要先去掉前面的‘#’号1 Include etc/extra/httpd-vhosts.conf 阅读全文
posted @ 2012-07-09 21:36 ericyuan 阅读(121) 评论(0) 推荐(0)

摘要:1、方法一在httpd-vhosts.conf文件里添加如下代码<VirtualHost *:80>ServerName www.abc.comDocumentRoot /web/abc</VirtualHost><VirtualHost *:80>ServerName abc.comRedirectMatch permanent ^/(.*) http://www.abc.com/$1</VirtualHost>2、方法二网站根目录下的.htaccess文件加入如下代码#RewriteCond %{HTTP_HOST} ^tznet.cn [N 阅读全文
posted @ 2012-06-11 11:22 ericyuan 阅读(387) 评论(0) 推荐(0)