Sunday, February 19, 2012

VAADIN and mod_proxy

Yesterday I tried to deploy a beta relase of my new Vaadin application on my debian box. I'm running it on an embedded jetty 6.x that I needed to get proxied by my apache web server. I found several posts about how to do this, and explanations that the VAADIN servlet has some troubles with beeing behind a proxy. The app on jetty on my side is running on localhost:8889/shop. It looks quite strange to me, but it works. I needed the /APP/ config to make StreamResources work. The proxy configuration that finally worked goes like this:

<VirtualHost *:80>
  ProxyPass /VAADIN/
  ProxyPass /APP/
  ProxyPass /
  ProxyPreserveHost On
  # Local reverse proxy authorization override
  # Most unix distribution deny proxy by default (ie /etc/apache2/mods-enabled/proxy.conf in Ubuntu)
  <Proxy *>
    Order deny,allow
    Allow from all

No comments: