Document new possibility of using context path for resolving location of
magnolia.properties
--------------------------------------------------------------------------------------------
Key: DOCU-264
URL: http://jira.magnolia-cms.com/browse/DOCU-264
Project: Documentation
Issue Type: Improvement
Security Level: Public
Reporter: Tobias Mattsson
As of 4.5.2 its possible to use also the contentPath 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):
{code}
<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>
{code}
Described in current documentation at:
http://documentation.magnolia-cms.com/administration/deployment/war-file-with-multiple-configurations.html
http://documentation.magnolia-cms.com/technical-guide/configuration-mechanisms.html
http://documentation.magnolia-cms.com/reference/configuration.html
http://documentation.magnolia-cms.com/reference/properties.html
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------