26 Jan 19:36
Re: two virtual hosts pointing to same webapp?
Matthias L. Jugel <leo <at> mud.de>
2006-01-26 18:36:47 GMT
2006-01-26 18:36:47 GMT
Hi, Do you have two separate webapps defined? I guess the problem is that they are using the same data directories. The issue here is then that upon startup both read the data from the database in memory but will write concurrently to it. Since SnipSnap works in memory with a write- through cache both webapps will load the same initial data and then corrupt the database. Make sure both use different databases. If you want one singe snipsnap to be available under two different virtual hosts, make sure tomcat does start it twice. I don't know how to do that. We usually run snipsnap using jetty and then use apache as a reverse proxy handling the hosts. Leo. On 26.01.2006, at 19:22, Jay Ballinger wrote: > Hi everyone, > > I am running snipsnap as the root webapp under Tomcat. I would like to > define two hosts that share the same webapp directory for snipsnap. I > searched through the FAQs but could not find an answer to this > question. I found answers for running multiple instances of snipsnap, > but that's not what I'm asking here. > > Under Tomcat, I would like to have one host of "machinename.foo.com" > defined with the webapp directory of "snipsnap". That works today. I > would like to add "snipsnap.foo.com" as another virtual host defined > with the same webapp directory of "snipsnap". > > When I try to define it this way, I get some odd behavior. The new > snipsnap.foo.com can see all of the existing snips and navigate > between them. However, if a user adds a snip under the host name of > "machinename.foo.com", that snip is not available under > "snipsnap.foo.com". As far as snipsnap.foo.com is concerned, that snip > simply doesn't exist. > > Hopefully I've described this clear enough. If someone has a > suggestion or a fix, could you please pass it along? Thanks > > > + jay > > _______________________________________________ > SnipSnap-Users Mailing List > snipsnap-users <at> snipsnap.org | http://snipsnap.org/ > http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users -- Mud.DE -- Gemeinschaft Virtueller Welten Deutschland Matthias L. Jugel http://www.mud.de Info: info <at> mud.de
RSS Feed