Tag Archives: apache

XWiki + Jetty + Apache

XWikiInitially I was running XWiki on Tomcat web server, which was communicating with HTTPD using AJP protocol, because it worked better with a subdomain. However, since there is limited memory on my VPS and the application seemed a bit slow and I was getting annoying HTTP 503 errors sometimes, I started looking for alternatives.

Jetty is a lightweight Java servlet container known for low memory footprint, so I decided to give it a go. Below is the configuration that worked for me.


I run jetty with default Debian configuration, except for memory – I have set 300M heap and 128M permgen size.


Default configuration.


I like to run my applications in separate subdomains, so I created a file in /etc/apache2 for xwiki subdomain. Here are its most critical parts.


Now XWiki runs noticeably faster than in previous configuration. I was setting it up few months ago, so perhaps I missed some configuration details. If my tips do not work for you, please let me know.

FOSDEM 2014 Sojourner App for Nokia N900

I have updated the Sojourner schedule app for Nokia N900 for FOSDEM 2014. It has been done in a dirty way – instead of recompiling the debian package I have added a new fosdem2014 conference file and updated the config file to use it.

One issue was that Sojourner does not support HTTPS protocol for downloading the schedule, and Fosdem 2014 schedule is only available through HTTPS. To solve this problem I have created HTTP proxy at the following URL: http://fosdem.loomchild.net/2014/schedule/xml and configured the package to use my proxy. Apache configuration looks like this:

There is another minor improvement – stripping of HTML tags from event abstracts and descriptions, because Sojourner does not support it. To do that I used mod_substitute Apache module. Here’s the configuration:


  • Old Sojourner version should be un-installed.
  • Dependencies (same as original Sojourner): python2.5, python-gobject (>= 2.16), python-hildon, python-notify, python-osso, python-dbus

Package download URL:

Update: I am now the official sojourner maintainer. To download the latest package please visit https://github.com/loomchild/sojourner.