Date: Thu, 28 Mar 2024 09:49:31 -0400 (EDT) Message-ID: <1427440590.27806.1711633771672@lyrasis1-roc-mp1> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_27805_545961264.1711633771672" ------=_Part_27805_545961264.1711633771672 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Most sites choose to configure their VIVO system with an Apache =
HTTPD web server to accept requests and then proxy them to the VIVO Tomcat =
context. This will make Vitro available at http:/=
/example.com
instead of http://example.com:8080/vitro
. It will also allow the=
use of external authentication.
Setup HTTPD to send all of the requests that it receives to Tomcat's AJP= connector. This can be done in HTTPD 2.x with a simple directive in httpd.= conf:
ProxyPa= ss / ajp://localhost:8009/
Modify the <Host> in Tomcat server.xml (located in [tomcat r=
oot]/conf/
) so that the context path is empty to allow VIVO to be se=
rved from the root path. Locate the <Host name=3D"localhost"...>=
;
directive and update as follows:
<Hos= t name=3D"localhost" appBase=3D"webapps" DeployOnStartup=3D"false" unpackWARs=3D"true" autoDeploy=3D"false" xmlValidation=3D"false" xmlNamespaceAware=3D"false"> =20 <Alias>example.com</Alias> =20 <Context path=3D"" docBase=3D"/usr/local/tomcat/webapps/vitro" reloadable=3D"true" cookies=3D"true" > =20 <Manager pathname=3D"" /> </Context> =20 ...
After setting up the above, it is recommended that you modify the Tomcat= AJP connector parameters in server.xml. Look for the <connector> dir= ective and add the following properties:
con= nectionTimeout=3D"20000" maxThreads=3D"320" keepAliveTimeout=3D"20000"
Note: the value for maxThreads (320) is equal or greater than the value =
for MaxClients in the apache's httpd.conf
file.