2017년 11월 16일 목요일

[Tech-WebSphere] ExtendedDocumentRoot

WebSphere Application Server - ExtendedDocumentRoot config
원문:
https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.iseries.doc/ae/rweb_jsp_staticfile.html

When the com.ibm.ws.webcontainer.ServeWelcomeFileFromExtendedDocumentRoot property is set to true, the web container searches in a static file extended document root for a static welcome file to serve for a request comprising a valid partial URL. For example, if a request specifies only the application context, and a welcome file is specified as index.html, the property must be set if index.html is to be served from a static file extended document.

The WebContainer has been modified to search an application defined ExtendedDocumentRoot when looking for a welcome file when the following WebContainer custom property is set to 
"true" (default is "false"): \\ \\ 

com.ibm.ws.webcontainer.ServeWelcomeFileFromExtendedDocumentRoot = true
com.ibm.ws.webcontainer.enablepartialurltoextendeddocumentroot = true


** ibm-web-ext.xmi

Static files:
<fileServingAttributes xmi:id="<user provided name>" name="extendedDocumentRoot"
 value="<user provided value>"/>

JSP files:
<jspAttributes xmi:id="<user provided name>" name="extendedDocumentRoot"
 value=<user provide value>"/>


** ibm-web-ext.xml

Static files:
<file-serving-attribute name="extendedDocumentRoot" value="/opt/extDocRootDir" />

JSP files:
<jsp-attribute name="extendedDocumentRoot" value="/opt/extDocRootDir","${MY_CUSTOM_VARIABLE}"  />


댓글 없음:

댓글 쓰기