Do this once when configuring a host:
-
Get eXist
-
Install it somewhere:
java -jar eXist-db-setup-2.2.jar -console
-
configure the built-in Jetty server. To do so, edit tools/jetty/etc/jetty.xml. Look for some properties and edit the corresponding settings:
jetty.host
to127.0.0.1
to avoid connections from outsidejetty.port
to some port
Add proxy statements towards the eXist scripts, e.g., for port 5555:
ProxyRequests off
ProxyPass /search http://localhost:5555/exist/apps/faust
ProxyPassReverse /search http://localhost:5555/exist/apps/faust
ProxyPassReverseCookiePath /exist /
<Proxy *>
RequestHeader unset Authorization
</Proxy>
See faust-gen, the maven build builds an eXist app.