9. Misc

webServer

Version
Serves static files based on the request's path.

Explanation:

Note that docBase any location: A relative or absolute directory, a "classpath://com.predic8.membrane.core.interceptor.administration.docBase" expression or a URL.

The interceptor chain will not continue beyond this interceptor, as it either successfully returns a HTTP response with the contents of a file, or a "404 Not Found." error.


Can be used in

Syntax

<webServer docBase="path" />
<webServer docBase="path" />

Sample

<serviceProxy port="80">
<request>
<webServer />
</request>
</serviceProxy>
<serviceProxy port="80">
  <request>
	<webServer  />
  </request>
</serviceProxy>

Attributes

NameRequiredDefaultDescriptionExamples
docBasetruedocBaseSets path to the directory that contains the web content.docBase
generateIndexfalse---
indexfalse---