My Oracle Support Banner

MatchExpression Defined For One Virtual Host in Apache Also Applies To All Of The Virtual Hosts Running (Doc ID 1395641.1)

Last updated on NOVEMBER 07, 2022

Applies to:

Oracle WebLogic Server - Version 10.3 and later
Information in this document applies to any platform.


If ANY of the virtual hosts contain MatchExpression then this directly applies to all of the virtual hosts running. With the result, if we hit one virtual host for some static content (expecting apache to serve the content from document root for example because of rule, set locally, using MatchExpression ) the request can get passed to backend application server due other MatchExpression rule defined for some other virtual host altogether. We will get 404 Not Found.

Example for a test and result is below :
If my httpd.conf fragments is :

The result should be :

http://host1:port/webapp1/test.jsp ->OK
http://test2:port/webapp1/test.jsp ->OK
http://host1:port/webapp1/testservlet2 ->404 Not Found
http://test2:port/webapp1/testservlet2 ->OK


In some cases , we can also see the below error message on the Web Browser:

"Failure of server APACHE bridge:
Neither cluster nor server host parameter was specified in httpd.conf.  Cannot continue."


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.