Alasdair Dougall
2017-05-30 00:32:57 UTC
Coming on the tail of the question from Dannes Wessels, I am having an
issue in setting up multiple homed websites within eXist 3.2.
With the 2.x version we would set tools/jetty/etc/jetty.xml and adjust the
following:
<New id="exist-webapp-context" class="org.exist.jetty.WebAppContext">
<!-- can either be '/exist' or '/' UPDATED to single slash -->
<Set name="contextPath">/</Set>.
<Set name="war.......
So, in 3.2 we have the same, tools/jetty/webapps/exist-webapp-context.xml:
<Configure id="exist-webapp-context" class="org.exist.jetty.WebAppContext">
<!-- contextPath can be set to either '/exist' or '/' UPDATED to single
slash -->
<Set name="contextPath">/</Set>
<Set name="war"><Pro........
Now, the question is how to be able to have multiple '/' rooted websites,
as in www.foodiesite.com and www.artandphotos.co.uk. That is having the
ability to host several websites on a server *without* the need to have
http://website/example1/index.html
To achieve this on eXist 2.x, I would change controller-config.xml to map
the domains as following:
<root server-name="www.foodiesite.com" pattern="/*"
path="xmldb:exist:///db/apps/foodiesite/"/>
Is the above the best way to achieve the multi-root homed websites? As to
date, I am not able to get the local instance to load foodiesite.local:8080
to load the local Foodiesite site to load, but localhost:8080 loads the
dashboard.
Thanks in advance.
Alasdair
issue in setting up multiple homed websites within eXist 3.2.
With the 2.x version we would set tools/jetty/etc/jetty.xml and adjust the
following:
<New id="exist-webapp-context" class="org.exist.jetty.WebAppContext">
<!-- can either be '/exist' or '/' UPDATED to single slash -->
<Set name="contextPath">/</Set>.
<Set name="war.......
So, in 3.2 we have the same, tools/jetty/webapps/exist-webapp-context.xml:
<Configure id="exist-webapp-context" class="org.exist.jetty.WebAppContext">
<!-- contextPath can be set to either '/exist' or '/' UPDATED to single
slash -->
<Set name="contextPath">/</Set>
<Set name="war"><Pro........
Now, the question is how to be able to have multiple '/' rooted websites,
as in www.foodiesite.com and www.artandphotos.co.uk. That is having the
ability to host several websites on a server *without* the need to have
http://website/example1/index.html
To achieve this on eXist 2.x, I would change controller-config.xml to map
the domains as following:
<root server-name="www.foodiesite.com" pattern="/*"
path="xmldb:exist:///db/apps/foodiesite/"/>
Is the above the best way to achieve the multi-root homed websites? As to
date, I am not able to get the local instance to load foodiesite.local:8080
to load the local Foodiesite site to load, but localhost:8080 loads the
dashboard.
Thanks in advance.
Alasdair