---
title: "Apache_WebLogic集群虚拟端口问题"
author: "jaystefanie"
date: "2010-12-24T18:21:14Z"
tags: ["Apache", "Weblogic", "虚拟机", "配置管理", "项目管理"]
categories: ["操作系统"]
slug: "apache-weblogic"
draft: false
lastmod: "2014-04-01T21:37:00Z"
id: 851438
url: "https://jaystefanie.iteye.com/blog/851438"
---

忙里偷忙 赶上项目需要配置WebLogic集群 跟着学了学～ 集群规划： WebLogic管理服务器； WebLogic被管服务器1； WebLogic被管服务器2； Apache代理服务器； Apache代理服务器（为日后主备机切换）； 依照安装文档一切OK。但是现在需要为Apache配置个虚拟端口。 添加个新端口后的httpd.conf Listen 7001 Listen 7003 LoadModule weblogic\_module modules/mod\_wl\_20.so #HTTP HOST WebLogicCluster 192.168.100.126:7001 MatchExpression \*.do MatchExpression * WebLogicCluster 192.168.100.126:7001 MatchExpression \*.do MatchExpression * 启动服务器报错 Failure of server APACHE bridge: Neither cluster nor server host parameter was specified in httpd.conf. Cannot continue. 查阅资料后发现问题出现在 然后做了些修改 用Locationg代替IfModule。 两者不同的是，Location主要是针对路径，而IfModule主要是针对文件类型，同时也可以加入路径，Location的行为优先执行 修改后的http.conf Listen 7001 Listen 7003 LoadModule weblogic\_module modules/mod\_wl\_20.so ServerName 192.168.100.174:7001 SetHandler weblogic-handler WebLogicCluster 192.168.100.126:7001 Debug ON DebugConfigInfo ON ServerName 192.168.100.174:7001 SetHandler weblogic-handler WebLogicCluster 192.168.100.126:7001 Debug ON DebugConfigInfo ON