Changeset 6889


Ignore:
Timestamp:
01/08/16 08:49:24 (8 years ago)
Author:
Twan Goosen
Message:

Instruction in bundled context.xml new base URI configuration parameters
refs #844

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/branches/ComponentRegistry-2.0/ComponentRegistry/src/main/webapp/META-INF/context.xml

    r6887 r6889  
    3737<Context antiJARLocking="true" path="/ComponentRegistry">
    3838  <!--
    39         Passed to the Flex UI via index.jsp so that it can locate the
    40         ComponentRegistry REST service. Just supply the application root:
    41         the '/rest/registry' part will be added by the application.
     39        Passed to the Flex via compRegConfig.jsp so that it can locate the
     40        ComponentRegistry REST service. Just supply the PUBLIC application root
     41        in the path; the '/rest/registry' part will be added by the application.
     42       
     43        "serviceUrlPath" is MANDATORY in all cases and should contain the path
     44        of the application relative to the server root, starting with a forward
     45        slash, e.g. "/ComponentRegistry".
     46       
     47        In addition, either "serviceUrlPath" OR the two parameters
     48        "serviceUrlProtocolHeader" and "serviceUrlHostHeader" need to be
     49        defined.
    4250    -->
    4351  <Parameter name="eu.clarin.cmdi.componentregistry.serviceUrlBase" value="${serviceUrlBase}"/>
    4452  <Parameter name="eu.clarin.cmdi.componentregistry.serviceUrlPath" value="${serviceUrlPath}"/>
    45 
    4653 <!--
    47   <Parameter name="eu.clarin.cmdi.componentregistry.serviceUrlProtocolHeader" value="${serviceUrlProtocolHeader}"/>
    48   <Parameter name="eu.clarin.cmdi.componentregistry.serviceUrlHostHeader" value="${serviceUrlHostHeader}"/>
     54  Uncomment two lines below iff you would like to use the protocol and host
     55  provided in the request headers.
     56  <Parameter name="eu.clarin.cmdi.componentregistry.serviceUrlProtocolHeader" value="X-FORWARDED-PROTO"/>
     57  <Parameter name="eu.clarin.cmdi.componentregistry.serviceUrlHostHeader" value="X-FORWARDED-HOST"/>
    4958 -->
    5059 
Note: See TracChangeset for help on using the changeset viewer.