-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Rory,
On 1/30/15 6:08 AM, Rory Kelly wrote: > I’m having a lot of trouble with maintaining a session in a Virtual > Host environment on 8.0.9. I installed Tomcat through apt-get on an > Ubuntu 14.04 server > > My application is a JRuby padrino bundled with Warbler, with 2 > steps for logging in, a login page and a challenge page. > > The session persists from Login through to challenge, but appears > to be dropped without any errors or warnings when I try to proceed > from the Challenge page. > > I configured the virtual host using the following format: > > <Host name="virtual1" appBase="virtual1" unpackWARs="true" > autoDeploy="true"> <Valve > className="org.apache.catalina.valves.AccessLogValve" > directory="logs" prefix="test_access_log" suffix=".txt" pattern="%h > %l %u %t "%r" %s %b" /> <Alias>testsitex.site.io</Alias> > </Host> > > No other configuration was done to the server. You might want a fully-qualified host name in the host's "name" field... or at least whatever your clients DNS will resolve to your server. That may actually be "virtual1" but I just thought I'd mention it. It shouldn't have any bearing on the session-handling, unless your web application switches hostnames by telling a client requesting "virtual1" that it should redirect to "testsitex.site.io" or vice-versa. > When I run the site on my local Windows environment without > Virtual Hosting, the session is maintained and I can log in. Is > there something else I need to configure to ensure that the session > is being maintained? Are you using cookies for session-tracking? Can you watch the HTTP conversation to see what's being sent back and forth during that workflow? LiveHttpHeaders is great for Firefox, and these days Chrome, Firefox, and IE have something similar built-into them. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUy5KNAAoJEBzwKT+lPKRYgnMP/2jDnAFvf0ga8DH+p6GMkyE0 uETGMF4TvWIIibavAqoRnFvNqVBFOkJDFKZGOc1rb2pBfD+LN+zPMQ5sAKyNRCYH mA/zBUGkyOLgIaM5oB9RWBGu4MrLs0YNelQSxlLrFUAp0GBt66y9Gc6EQWuk6zqf JqT1b1elHRqLeFChVhMBRABGC14u+czycgF9gy7WcDw5PwvYCyOY9yIYf+R0mkXc GExE9h9H/emUS5RtiuHrtgPXIhAOeleahiTCCj0TZbvpGb7axaOrR6aUutpbwNB5 JyFr1w86B2eQARlGBZ55JDi8NfiZaj+Cdarwos1od0bL5FHlTh7L5qEJDSC8RTAm HU68A5LvrAho+9Er4zGyOHUfcfdSGD/nEcX8Aqk5PpKjKjo3MZfuOa8/PqvMe8c8 02bRsXcj4AlImO70em/wHzeonnbnmRcm+wDN1f06s4lIlO93IFY24SBj+yP7kRds yV/pqcGVnZqcubUWxBq8KuBumVzX3GyLj6SzmKYVHY/g8UTOIaoA2H+yZ0bHTSwn XjAPN2R2vX+CaqWr/xsrl7Qh05CC+ugCpgTGy2xQamTgOiM0HmENvE5gdTpCxgZs bGm3lgT11CvgJybsQidfcTwzhp9JOuEyz7xP+bbA189OpFatR/kaMCUt5nsdKRg8 TUFjhv9QtjxXhsRVGR3U =qgxw -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org