From: Evgeny G. <gaz...@gm...> - 2010-02-09 20:12:19
|
Agree! what about adding hosts/sites dynamically without restarting exist? I'm plain handle that in controller.xql and some xml metafile for site description. Think it can be more flex in this case. 2010/2/9 Loren Cahlander <lor...@gm...> > There is an option (off of trunk version 11177) now to send web queries to > different collections within eXist based on the server name in the URL: > > i.e. > With the following configuration changes in controller-config.xml > > from: > <root pattern=".*" path="/"/> > > to: > <root server-name="site1.example.com" pattern="/*" > path="xmldb:exist:///db/org/site1/"/> > <root server-name="site2.example.com" pattern="/*" > path="xmldb:exist:///db/org/site2/"/> > <root server-name="site3.example.com" pattern="/*" > path="xmldb:exist:///db/org/site3/"/> > <root server-name="localhost" pattern=".*" path="/"/> > <root server-name="site4.example.com" pattern=".*" path="/"/> > > http://site1.example.com/ would be redirected to /db/org/site1 > http://site2.example.com/ would be redirected to /db/org/site2 > http://site3.example.com/ would be redirected to /db/org/site3 > http://localhost/ would be directed to index.xml in the webapp directory > as it is normally done. > http://site4.example.com/ would be directed to index.xml > > NOTE: The server-name attribute is optional. If it is omitted, then the > behavior operates as normal. > > This will allow for the hosting of multiple websites in one eXist instance. > > > I still need to work on the jetty configuration, so that the logs for each > individual website can be separated out from the other websites. > > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > > |