I am getting some difficulties with getting snacks to operate when utilizing a ProxyPass to redirect traffic on port 80 to some web-application located via Tomcat.

My motivation for enabling snacks would be to eliminate the "jsessionid=" parameter that's appended towards the Web addresses.

I have enabled snacks during my context.xml in META-INF/ for my web application.
After I access the webapplication via http://url:8080/webapp it really works not surprisingly, the jsessionid parameter isn't visible within the URL, rather it's saved inside a cookie.

When being able to access this site with an apache2 virtualhost the snacks does not appear to operate because now "jsessionid" has been appended towards the Web addresses. How do i solve this problem?

Here's my VHost configuration:

<VirtualHost *:80>

        ServerName somedomain.no

        ServerAlias www.somedomain.no

        <Proxy *>

                Order deny,allow

                Allow all


        ProxyPreserveHost Off

        ProxyPass / http://localhost:8080/webapp/

        ProxyPassReverse / http://localhost:8080/webapp/

        ErrorLog /var/log/apache2/somedomain.no.error.log

        CustomLog /var/log/apache2/somedomain.no.access.log combined


EDIT: The cookie is really being set. I'm speculating that however , the cookie consists of the "Path: /webapp".

I believed it.

Add this towards the VHost configuration:

ProxyPassReverseCookiePath /webapp /