Changes between Version 2 and Version 3 of HowToRunMultipleGeonetworkInstancesUnderJetty
- Timestamp:
- 11/07/13 09:04:17 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToRunMultipleGeonetworkInstancesUnderJetty
v2 v3 11 11 __Worked example__ 12 12 13 I have two branded geonetwork installs (based on 2.6.0 and 2.6.1) running on localhost 8080 and 8081, which I want to be visible at /261/xmleditor and /260/xmleditor:13 I have two branded !GeoNetwork installs (based on 2.6.0 and 2.6.1) running on localhost 8080 and 8081, which I want to be visible at /261/xmleditor and /260/xmleditor: 14 14 15 15 My geonetwork.xml in my geonetwork.2.6.1 install is as follows. There is a very similar(!) one in my 2.6.0 install: 16 16 17 18 {{{ 17 19 <?xml version="1.0" encoding="ISO-8859-1"?> 18 20 <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> … … 21 23 <Set name="war"><SystemProperty name="jetty.home" default="."/>/../web/geonetwork/</Set> 22 24 </Configure> 25 }}} 23 26 24 In Apache's ProxyPass andProxyPassReverse settings, make your localhost context the same as your public context.27 In Apache's !ProxyPass and !ProxyPassReverse settings, make your localhost context the same as your public context. 25 28 29 {{{ 26 30 ProxyPass /261/xmleditor http://localhost:8080/261/xmleditor 27 28 31 ProxyPassReverse /261/xmleditor http://localhost:8080/261/xmleditor 29 32 30 33 ProxyPass /260/xmleditor http://localhost:8081/260/xmleditor 31 32 34 ProxyPassReverse /260/xmleditor http://localhost:8081/260/xmleditor 33 35 }}} 34 36 35 37 I have added –Djetty.port=8080 (or 8081 for the other one) to the java line in bin/start-geonetwork.sh