Posts Tagged ‘apache’

nginx 集群报"upstream" directive is not allowed here 错

Saturday, December 4th, 2010

搭建了一个服务器, 采用的是nginx + apache(多个) + php + mysql(两个) 多个apache负载均衡及后端mysql读写分离的服务器.  

当然如果网站流量小的话 就完全没有必要了! 一是搭建起来麻烦,二也增加了维护成本! 当你网站流量达到一定级别不考虑也得考虑了.

当设定好 upstream 如下:

Read More: 713 Words Totally

Apache 编译不生成modules文件问题

Friday, December 3rd, 2010

文档还是多查查英文的为好,中文的抄袭太过严重,并且错误过多……….

在编译apache源文件时要设置好编译成静态还是动态,静态就是在启动时已经加载进来 ,动态则是动态加载.so文件. 嗯  还是选择动态编译好吧.

hen you configure Apache with –enable-modules=most , the modules are built into Apache and do not need to be loaded with LoadModule before using them.

Read More: 634 Words Totally

Apache相关编译参数

Thursday, December 2nd, 2010

Apache编译参数详解

常用编译参数一览

/configure   //配置源代码树

Read More: 2492 Words Totally

Windows 下最新版本php与apache整合问题

Wednesday, September 8th, 2010

刚从官网下载了最新版本的apache与php 5.3.3在自己的电脑 win7下面进行整合,总是无法加载php-apache.dll模块,非常郁闷 !最后采用了php-cgi模式搞定!然后又将apache tomcat进行整合,自己电脑上就可以跑php ,java了,OK搞定!

贴一下部分代码:

Read More: 255 Words Totally