mod_wl_24.so中带有WebLogic代理插件的apache virtualhost指令有什么问题?

mod_wl_24.so中带有WebLogic代理插件的apache virtualhost指令有什么问题?,apache,proxy,weblogic,virtualhost,Apache,Proxy,Weblogic,Virtualhost,我在为两个具有两个不同上下文路径和端口的应用程序配置apache ProxyPass指令时遇到问题。我使用apache代理将请求路径发送到tomcat,另一个通过weblogic proxy mod_wl_24.so发送到weblogic。 脚本: 1.到weblogic服务器 2.访问apapche本地静态资源 我的apahce http-vhost.conf如下所示: <VirtualHost *:8444> ServerName test.com <Lo

我在为两个具有两个不同上下文路径和端口的应用程序配置apache ProxyPass指令时遇到问题。我使用apache代理将请求路径发送到tomcat,另一个通过weblogic proxy mod_wl_24.so发送到weblogic。 脚本: 1.到weblogic服务器 2.访问apapche本地静态资源

我的apahce http-vhost.conf如下所示:

 <VirtualHost *:8444>
    ServerName test.com
    <Location /WechatBank>
     <IfModule mod_weblogic.c>
     WeblogicHost wxapp
     WeblogicPort 9091
     ConnectTimeoutSecs 49
     MatchExpression *.html
     WLLogFile       /home/wxapache/admin/tmp/proxy.log
     WLTempDir       "/home/wxapache/admin/proxy_tmp/"
     </IfModule>
    </Location>
    ErrorLog "logs/error_8444_log"
    CustomLog "logs/access_8444_log" common
    </VirtualHost>

    <VirtualHost *:8443>
        ServerName test.com
        ProxyPassMatch ^/DirectBank/(service|server)/(.*) http://wxapp:8443/DirectBank
        ProxyPass /DirectBank !
        ErrorLog "logs/error_8443_log"
        CustomLog "logs/access8443__log" common
    </VirtualHost>

ServerName test.com
WeblogicHost wxapp
WebLogicPort9091
连接TimeOutSecs 49
MatchExpression*.html
WLLogFile/home/wxapache/admin/tmp/proxy.log
WLTempDir“/home/wxapache/admin/proxy_tmp/”
错误日志“日志/错误日志”
自定义日志“日志/访问日志”通用
ServerName test.com
ProxyPassMatch^/DirectBank/(服务|服务器)/(*)http://wxapp:8443/DirectBank
ProxyPass/DirectBank!
错误日志“日志/错误日志”
自定义日志“日志/访问8443_______”通用
但我可以访问。 获取weblogic网桥消息: Web服务器网桥故障:配置不正确。无法继续 apache错误日志如下所示:

[Tue Jul 24 14:19:31.950654 2018] [proxy:trace2] [pid 32687:tid 1142970688] mod_proxy.c(674): [client 158.58.12.180:64737] AH03461: attempting to match URI path '/DirectBank/views/index.html' against pattern '^/DirectBank/(service|home)/(.*)$' for proxying
[Tue Jul 24 14:19:31.950665 2018] [proxy:trace2] [pid 32687:tid 1142970688] mod_proxy.c(674): [client 158.58.12.180:64737] AH03461: attempting to match URI path '/DirectBank/views/index.html' against prefix '/DirectBank' for proxying
[Tue Jul 24 14:19:31.950672 2018] [proxy:trace1] [pid 32687:tid 1142970688] mod_proxy.c(727): [client 158.58.12.180:64737] AH03463: proxying is explicitly disabled for URI path '/DirectBank/views/index.html'; declining
[Tue Jul 24 14:19:31.950729 2018] [authz_core:debug] [pid 32687:tid 1142970688] mod_authz_core.c(835): [client 158.58.12.180:64737] AH01628: authorization result: granted (no directives)
[Tue Jul 24 14:19:31.950741 2018] [core:trace3] [pid 32687:tid 1142970688] request.c(304): [client 158.58.12.180:64737] request authorized without authentication by access_checker_ex hook: /DirectBank/views/index.html
[Tue Jul 24 14:19:31.950867 2018] [weblogic:debug] [pid 32687:tid 1142970688] ApacheProxy.cpp(878): [client 158.58.12.180:64737] <3268715324131713> ================New Request: [GET /DirectBank/views/index.html HTTP/1.1] =================
[Tue Jul 24 14:19:31.950889 2018] [weblogic:debug] [pid 32687:tid 1142970688] ApacheProxy.cpp(1034): [client 158.58.12.180:64737] <3268715324131713> Using Uri /DirectBank/views/index.html
[Tue Jul 24 14:19:31.950899 2018] [weblogic:debug] [pid 32687:tid 1142970688] ApacheProxy.cpp(1054): [client 158.58.12.180:64737] <3268715324131713> After trimming path: '/DirectBank/views/index.html'
[Tue Jul 24 14:19:31.950906 2018] [weblogic:debug] [pid 32687:tid 1142970688] ApacheProxy.cpp(1130): [client 158.58.12.180:64737] <3268715324131713> The final request string is '/DirectBank/views/index.html'
[Tue Jul 24 14:19:31.950915 2018] [weblogic:error] [pid 32687:tid 1142970688] [client 158.58.12.180:64737] <3268715324131713> Neither 'WebLogicCluster' nor 'WebLogicHost' specified in parameters
[Tue Jul 24 14:19:31.950935 2018] [weblogic:error] [pid 32687:tid 1142970688] [client 158.58.12.180:64737] <3268715324131713> *******Exception type [CONFIG_ERROR] (Neither 'WebLogicCluster' nor 'WebLogicHost' specified in parameters\n) raised at line 2192 of ApacheProxy.cpp
[Tue Jul 24 14:19:31.951026 2018] [weblogic:error] [pid 32687:tid 1142970688] [client 158.58.12.180:64737] CONFIG_ERROR [line 2192 of ApacheProxy.cpp]: Neither 'WebLogicCluster' nor 'WebLogicHost' specified in parameters\n
[Tue Jul 24 14:19:31.951058 2018] [http:trace3] [pid 32687:tid 1142970688] http_filters.c(1128): [client 158.58.12.180:64737] Response sent with status 500, headers:
[Tue Jul 24 14:19:31.951073 2018] [http:trace5] [pid 32687:tid 1142970688] http_filters.c(1135): [client 158.58.12.180:64737]   Date: Tue, 24 Jul 2018 06:19:31 GMT
[Tue Jul 24 14:19:31.951079 2018] [http:trace5] [pid 32687:tid 1142970688] http_filters.c(1138): [client 158.58.12.180:64737]   Server: Apache/2.4.33 (Unix)
[Tue Jul 24 14:19:31.951086 2018] [http:trace4] [pid 32687:tid 1142970688] http_filters.c(957): [client 158.58.12.180:64737]   Content-Length: 184
[Tue Jul 24 14:19:31.951092 2018] [http:trace4] [pid 32687:tid 1142970688] http_filters.c(957): [client 158.58.12.180:64737]   Connection: close
[Tue Jul 24 14:19:31.951097 2018] [http:trace4] [pid 32687:tid 1142970688] http_filters.c(957): [client 158.58.12.180:64737]   Content-Type: text/html
[Tue Jul 24 14:19:31.950654 2018][proxy:trace2][pid 32687:tid 1142970688]mod_proxy.c(674):[client 158.58.12.180:64737]AH03461:尝试将URI路径“/DirectBank/views/index.html”与模式“^/DirectBank/(service | home)/(.*)”匹配以进行代理
[Tue Jul 24 14:19:31.950665 2018][proxy:trace2][pid 32687:tid 1142970688]mod_proxy.c(674):[client 158.58.12.180:64737]AH03461:尝试将URI路径“/DirectBank/views/index.html”与前缀“/DirectBank”匹配以进行代理
[Tue Jul 24 14:19:31.950672 2018][proxy:trace1][pid 32687:tid 1142970688]mod_proxy.c(727):[client 158.58.12.180:64737]AH03463:URI路径“/DirectBank/views/index.html”显式禁用代理;下降
[Tue Jul 24 14:19:31.950729 2018][authz_core:debug][pid 32687:tid 1142970688]mod_authz_core.c(835):[client 158.58.12.180:64737]AH01628:授权结果:已授予(无指令)
[Tue Jul 24 14:19:31.950741 2018][core:trace3][pid 32687:tid 1142970688]request.c(304):[client 158.58.12.180:64737]请求未经访问检查器验证而授权:/DirectBank/views/index.html
[星期二7月24日14:19:31.950867 2018][weblogic:debug][pid 32687:tid 1142970688]ApacheProxy.cpp(878):[client 158.58.12.180:64737]========================新请求:[GET/DirectBank/views/index.html HTTP/1.1]=================
[Tue Jul 24 14:19:31.950889 2018][weblogic:debug][pid 32687:tid 1142970688]ApacheProxy.cpp(1034):[client 158.58.12.180:64737]使用Uri/DirectBank/views/index.html
[Tue Jul 24 14:19:31.950899 2018][weblogic:debug][pid 32687:tid 1142970688]ApacheProxy.cpp(1054):[client 158.58.12.180:64737]修剪路径后:'/DirectBank/views/index.html'
[Tue Jul 24 14:19:31.950906 2018][weblogic:debug][pid 32687:tid 1142970688]ApacheProxy.cpp(1130):[client 158.58.12.180:64737]最后的请求字符串是“/DirectBank/views/index.html”
[Tue Jul 24 14:19:31.950915 2018][weblogic:error][pid 32687:tid 1142970688][client 158.58.12.180:64737]参数中未指定“WebLogicCluster”或“WebLogicHost”
[Tue Jul 24 14:19:31.950935 2018][weblogic:error][pid 32687:tid 1142970688][client 158.58.12.180:64737]*******在ApacheProxy.cpp的第2192行引发的异常类型[CONFIG_error](参数中未指定“WebLogicCluster”或“WebLogicHost”\n)
[Tue Jul 24 14:19:31.951026 2018][weblogic:error][pid 32687:tid 1142970688][client 158.58.12.180:64737]配置错误[ApacheProxy.cpp的第2192行]:参数中未指定“WebLogicCluster”或“WebLogicHost”\n
[星期二7月24日14:19:31.951058 2018][http:trace3][pid 32687:tid 1142970688]http_filters.c(1128):[client 158.58.12.180:64737]已发送状态为500的响应,标题:
[2018年7月24日星期二14:19:31.951073][http:trace5][pid 32687:tid 1142970688]http_filters.c(1135):[客户158.58.12.180:64737]日期:2018年7月24日星期二06:19:31 GMT
[Tue Jul 24 14:19:31.951079 2018][http:trace5][pid 32687:tid 1142970688]http_filters.c(1138):[client 158.58.12.180:64737]服务器:Apache/2.4.33(Unix)
[星期二7月24日14:19:31.951086 2018][http:trace4][pid 32687:tid 1142970688]http_filters.c(957):[client 158.58.12.180:64737]内容长度:184
[星期二7月24日14:19:31.951092 2018][http:trace4][pid 32687:tid 1142970688]http_filters.c(957):[client 158.58.12.180:64737]连接:关闭
[星期二7月24日14:19:31.951097 2018][http:trace4][pid 32687:tid 1142970688]http_filters.c(957):[client 158.58.12.180:64737]内容类型:text/html

根据您的请求,您需要通过Apache为本地文件提供服务。更简单的方法如下:

<VirtualHost *:8443>
    ServerName test.com
    Alias /DirectBank/ "/opt/SOME_LOCAL_FOLDER"
    <Directory "/opt/SOME_LOCAL_FOLDER">
      Options None
      AllowOverride None
      Order allow,deny
      Allow from all
    </Directory>
    ErrorLog "logs/error_8443_log"
    CustomLog "logs/access8443__log" common
</VirtualHost>

ServerName test.com
别名/DirectBank/“/opt/SOME_LOCAL_文件夹”
选项无
不允许超限
命令允许,拒绝
通融
错误日志“日志/错误日志”
自定义日志“日志/访问8443_______”通用

在我的httpd.conf中,我设置了DocumentRoot。我的静态文件位于/usr/local/apache/www/project\u文件中

 DocumentRoot "/usr/local/apache/www"
<Directory "/usr/local/apache/www">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>
DocumentRoot”/usr/local/apache/www
#
#选项指令的可能值为“无”、“全部”,
#或以下任何组合:
#索引包括以下符号链接符号链接所有者匹配执行CGI多视图
#
#请注意,“多视图”必须显式命名为*--“所有选项”
#不给你。
#
#期权指令既复杂又重要。请看
# http://httpd.apache.org/docs/2.4/mod/core.html#options
#了解更多信息。
#
选项如下符号链接
#
#AllowOverride控制可在.htaccess文件中放置的指令。
#它可以是“全部”、“无”或关键字的任意组合:
#AllowOverride文件信息AuthConfig限制
#
不允许超限
#
#C