前几天搭了一个论坛服务器并放到了公司的局域网里面,论坛用的是9066端口并在路由器上面做了个端口转发,而且把bbs.xxx.com这个域名也指向了公司的公网IP,因为想让用户在访问的时候不用输入端口号于是就想在公司的web服务器上面做个跳转,将访问bbs.xxx.com的请求都转到他的服务器上面去。我第一个想法就是 用 nginx的rewrite,过程很简单 配置如下:server
http://freeloda.blog.51cto.com/2033581/1288553http://blog.chinaunix.net/uid-20662363-id-3049712.html nginx的upstream目前支持5种方式的分配
Nginx如果rewrite写了很多条,很容易发现rewrite写的没问题,可是就是匹配不了,很可能已匹配到其它rewrite中去了。打开rewrite的log,可以清晰的看到其匹配的先后顺序,和那一条匹配了。方法:1:在http段加入如下:rewrite_log on;error_log /tmp/xxxerror.log notice;注意两点:1)在http字段加,反正我试了一下,在配置文件
CentOS 5.5 成功安装 freeradius 2.1.9 mysql安装CentOS 5.5 直接把apache、mysql、php都装上了,注意装mysql的时候,最好是把mysql-devel也装上,开始装的时候不知道是不是因为他没有装也没在freeradius连接mysql的时候没有成功。当然,如果你安装系统的时候没有选,也可以用yum来安装就可以。[root@localhost ~
http://sfzhang88.blog.51cto.com/4995876/1313019 动化运维工具Saltstack学习笔记(上)http://sfzhang88.blog.51cto.com/4995876/1317802 自动化运维工具Saltstack学习笔记(下)http://lihuipeng.blog.51cto.com/3064864/1394316
http://502245466.blog.51cto.com/7559397/1304050 Apache+Tomcat构建Tomcat负载均衡集群(keepalived)http://502245466.blog.51cto.com/7559397/1304712Apache代理Tomcat实现session共享构建网上商城系统http://502245466.blog.51cto.com/7
Apache做反向代理tomcatapache/logs/error_log报错:No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration usin
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号