Hello,
I have the following configuration:
Listen 10.10.71.151:9080
Listen 10.10.71.151:9090
NameVirtualHost 10.10.71.151:9080
<VirtualHost 10.10.71.151:9080>
CustomLog /tmp/v1.log common
ServerName 10.10.71.151
<IfModule mod_weblogic.c>
<Location /console>
SetHandler weblogic-handler
WebLogicHost 10.10.71.151
WebLogicPort 7003
WLLogFile /tmp/log1.log
</Location>
</IfModule>
</VirtualHost>
NameVirtualHost 10.10.71.151:9090
<VirtualHost 10.10.71.151:9090>
CustomLog /tmp/v2.log common
ServerName 10.10.71.151
<IfModule mod_weblogic.c>
<Location /console>
SetHandler weblogic-handler
WebLogicHost 10.10.71.151
WebLogicPort 7001
WLLogFile /tmp/log2.log
</Location>
</IfModule>
</VirtualHost>
This configuration works on http. when I try to go to https, to "MatchExpression" both VirtualHost solves the same site.
Where is the error?
seems that the directive "MatchExpression" act globally ...
Listen 10.10.71.151:9080
Listen 10.10.71.151:9090
NameVirtualHost 10.10.71.151:9080
<VirtualHost 10.10.71.151:9080>
MatchExpression /console WebLogicHost=10.10.71.151|WebLogicPort=7003|PathTrim=/console
CustomLog /tmp/v1.log common
ServerName 10.10.71.151
<IfModule mod_weblogic.c>
<Location /console>
SetHandler weblogic-handler
WebLogicHost 10.10.71.151
WebLogicPort 7003
WLLogFile /tmp/log1.log
</Location>
</IfModule>
RewriteEngine On
RewriteLog /tmp/apache/rewrite.log
RewriteLogLevel 0
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) [
esfinge.prepro.inversis.com...] [L,R]
</VirtualHost>
NameVirtualHost 10.10.71.151:9090
<VirtualHost 10.10.71.151:9090>
MatchExpression /console WebLogicHost=10.10.71.151|WebLogicPort=7001|PathTrim=/console
CustomLog /tmp/v2.log common
ServerName 10.10.71.151
<IfModule mod_weblogic.c>
<Location /console>
SetHandler weblogic-handler
WebLogicHost 10.10.71.151
WebLogicPort 7001
WLLogFile /tmp/log2.log
</Location>
RewriteEngine On
RewriteLog /tmp/apache/rewrite.log
RewriteLogLevel 0
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) [
esfinge.prepro.inversis.com...] [L,R]
</IfModule>
</VirtualHost>
Is there another way to do this no policy "MatchExpresion?
My Apache version is 2.0.51