通过http-vhosts.conf配置apache的负载均衡
来源:互联网 发布:怛罗斯之战 知乎 编辑:程序博客网 时间:2024/05/20 18:50
一、在httpd.conf中加载如下库,并去掉Include conf/extra/httpd-vhosts.conf的注释:
二、在httpd-vhosts.conf中添加虚拟主机:
<VirtualHost *:80>
RewriteEngine On
RewriteOptions Inherit
RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} ^/service_engine/jaxrs/(.*)$
RewriteRule ^/?(.*)$ https://%{SERVER_NAME}:{SSL_PORT}/$1 [L,R]
ProxyRequests Off
ProxyPass /appname balancer://appname lbmethod=byrequests stickysession=ROUTEID
ProxyPassReverse /appname balancer://appname
<Proxy balancer://appname/>
Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/appname" env=BALANCER_ROUTE_CHANGED
BalancerMember ajp://appIP:ajpPort/appname route=appname loadfactor=50 keepalive=On timeout=1800
</Proxy>
</VirtualHost>
Apache HTTP Server 与 Tomcat 的三种连接方式参考
- 通过http-vhosts.conf配置apache的负载均衡
- 不同版本的apache通过httpd-vhosts.conf配置虚拟主机
- apache httpd-vhosts.conf http-ssl.conf配置样例
- apache\conf\extra\httpd-vhosts.conf配置
- apache vhosts或httpd.conf配置虚拟主机
- Apache配置虚拟主机httpd-vhosts.conf
- httpd-vhosts.conf配置
- Apache配置虚拟主机httpd-vhosts.conf配置步骤
- Nginx负载均衡conf配置
- nginx.conf负载均衡配置
- apache开启虚拟主机功能与httpd-vhosts.conf 配置分享
- apache开启虚拟主机与httpd-vhosts.conf配置
- apache开启虚拟主机功能与httpd-vhosts.conf 配置
- Apache负载均衡配置
- Apache 负载均衡配置
- Apache负载均衡配置
- Apache负载均衡配置
- apache负载均衡配置
- 树状结构的操作模型
- 如何写thinkphp的注册与登录代码-thinkphp的session设置
- 简单读取网站页面内容demo
- linux TFTP服务器配置
- *、vb6用api实现comdialog对话框
- 通过http-vhosts.conf配置apache的负载均衡
- 牛人博客搜集
- jquery 三级联动菜单
- 如何下载并编译Android4.0内核源码goldfish(图文)
- C# Web Service 学习
- SQL Server 2008R2编写脚本时智能提示功能丢失的处理方法
- linux kernel lpj参数
- PQ使用
- java实现断点续传的原理