Change default login screen

Configuring Tomcat external resource

  • Stop the Tomcat.
  • Edit the "$TOMCAT/conf/server.xml" file and add into xml "<Host>...</Host>" section add the line:
<Context docBase="${catalina.base}/custom" path="/openkm/custom" reloadable="true"/>

The xml Host sections should looks like this:

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">

	<!-- SingleSignOn valve, share authentication between web applications
		 Documentation at: /docs/config/valve.html -->
	<!--
	<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
	-->

	<!-- Access log processes all example.
		 Documentation at: /docs/config/valve.html
		 Note: The pattern used is equivalent to using pattern="common" -->
	<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
		   prefix="localhost_access_log." suffix=".txt"
		   pattern="%h %l %u %t &quot;%r&quot; %s %b" />


	<!-- External resources -->
	<Context docBase="${catalina.base}/custom" path="/openkm/custom" reloadable="true"/>
</Host>

Change default login web page

Go to Administration > Configuration parameters and edit the parameter:

PropertyTypeDescription

custom.login

String

/custom/login.jsp

Enable frontend top banner section

Go to Administration > Configuration parameters and edit the parameters:

PropertyTypeDescription

custom.header.height

Integer

95

custom.header.source

String

/openkm/custom/header.jsp