想要在.htaccess中开启反向代理功能都不行[apache中没有mod_proxy模块] .htaccess 文件内容如下 RewriteEngine On RewriteBase / RewriteRule ^(.*)$ http://sogou.weixin.com/$1 [P] "prox
分类:
Web程序 时间:
2016-02-18 19:26:19
阅读次数:
173
当nginx需要做反向代理和负载均衡的时候配置如下: upstream mir_k8s_service_server { server 10.111.11.83:8080 weight=10; server 10.111.11.84:8080 weight=10; #也可以不需要weight, 用i
分类:
Web程序 时间:
2016-02-02 14:26:54
阅读次数:
193
Apache配置须知: Listen 80:端口监听,这个地方可以设置监听多个端口,设置方式 Listen 80 Listen 8080 DocumentRoot ‘路径’:网站根目录 ServerName ‘域名:80’:域名 <Directory ‘路径’> DirectoryIndex ind
分类:
其他好文 时间:
2016-02-02 01:11:24
阅读次数:
144
Apache日志默认情况下是一周切割一次,由于访问量大的时候日志的文件还是比较大的,同时也不利于管理员对日志的分析处理。于是尝试对Apache日志设置按天分割,并通过计划任务执行删除几天的日志。 配置文件修改: # # This is the main Apache server configura
分类:
Web程序 时间:
2016-01-29 15:37:44
阅读次数:
187
今天在公司配置Zend本地Apache环境的时候,发现在zend.conf中的权限控制中的几段句子,如下所示: 复制代码代码如下: <Location /server-status> SetHandler server-status Order deny,allow Deny from all Al
分类:
Web程序 时间:
2016-01-28 08:17:14
阅读次数:
150
4.1修改apache配置文件支持php修改DirectoryIndexindex.html为DirectoryIndexindex.htmlindex.php并添加AddTypeapplication/x-httpd-php.php4.2测试php支持创建测试php页面test.php,并存放在网站主目录下,<?phpphpinfo();?>重启apache服务后,访问http://ip/test.php
分类:
Web程序 时间:
2016-01-27 13:11:52
阅读次数:
165
问题:Startinghttpd:AH00558:httpd:Couldnotreliablydeterminetheserver‘sfullyqualifieddomainname,using10.162.217.220.Setthe‘ServerName‘directivegloballytosuppressthismessage百度解决方案:apache配置文件httpd.conf,搜索"#ServerName",修改为:ServerNamelocalhost:..
分类:
其他好文 时间:
2016-01-25 07:41:10
阅读次数:
179
Apache配置文件代码。xwamp:Windows下搭建Apache + PHP + MySQL环境 SetEnvIfNoCase User-Agent ".*(ZmEu|BLEXBot|MJ12bot|AhrefsBot|ChinasoSpider|DotBot|megaindex)" B...
分类:
Web程序 时间:
2016-01-24 18:08:51
阅读次数:
557
客户的zhcp面板坏了,手动给他创建了apache配置但是配置完成后一直访问不了,提示403错误。手动编辑了phpinfo文件,但是仍然提示4032.vim-Oxxx.confcommon.conf对比正常配置文件,发现没有什么问题3.怀疑配置文件没有读取成功,手动在httpd.conf添加额外的Include/path/to/file..
分类:
Web程序 时间:
2016-01-20 22:59:37
阅读次数:
366
检查apache下模块扩展yuminstallphpphp-mysqlphp-commonphp-gdphp-mbstringphp-mcryptphp-develphp-xmlyuminstallmysqlmysql-servermysql-devel修改apache配置文件加上如下二行AddTypeapplication/x-httpd-php.php.phtmlAddTypeapplication/x-httpd-php-source.phps重启apache
分类:
数据库 时间:
2016-01-16 19:43:25
阅读次数:
204