[DOCU-264] Document new possibility of using context path for resolving location of magnolia.properties Created: 26/Mar/12 Updated: 03/Nov/15 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Tobias Mattsson | Assignee: | Antti Hietala |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
As of 4.5.2 its possible to use also the contextPath as a variable when locating the magnolia.properties file. The context path is the part of the URL that Magnolia is housed at. For instance in http://domain.com/magnoliaPublic, the context path is /magnoliaPublic. When Magnolia runs without a context path, at http://domain.com/ then we have the variable set to "ROOT". The new defaults are (tested in this order until a file is found): <context-param>
<param-name>magnolia.initialization.file</param-name>
<param-value>
WEB-INF/config/${servername}/${contextPath}/magnolia.properties,
WEB-INF/config/${servername}/${webapp}/magnolia.properties,
WEB-INF/config/${servername}/magnolia.properties,
WEB-INF/config/${contextPath}/magnolia.properties,
WEB-INF/config/${webapp}/magnolia.properties,
WEB-INF/config/default/magnolia.properties,
WEB-INF/config/magnolia.properties
</param-value>
</context-param>
Described in current documentation at: |
| Comments |