Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-08-09 Thread Rainer Jung
On 09.08.2011 23:08, André Warnier wrote: > Rainer Jung wrote: >> On 09.08.2011 20:45, Lataxes, Karl wrote: >> Are you aware of the fact, that a cookie *is* an additional HTTP header, >> namely the header named "Cookie"? So if you can set HTTP headers to >> values you can define, then you *can* sen

Re: Adding two-factor authentication to a Tomcat app??

2011-08-09 Thread Mark Eggers
- Original Message - > From: sodastream > To: users@tomcat.apache.org > Cc: > Sent: Tuesday, August 9, 2011 12:52 PM > Subject: Adding two-factor authentication to a Tomcat app?? > > > Given: Commercial application running as a servlet on Tomcat. Tomcat > configuration (server.xml, web

Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-08-09 Thread André Warnier
Rainer Jung wrote: On 09.08.2011 20:45, Lataxes, Karl wrote: Our clients cannot send or process JSESSIONIDs as they are not web browsers, but proprietary equipment running embedded software that sends HTTP POST messages to a servlet on our internal network. The servlet keeps track of sessions i

Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-08-09 Thread André Warnier
Be reassured : your questions are not stupid. It is just that your situation is a bit unusual, so it takes us time to figure out precisely what you want to achieve, and to try to fit this (if it has to be fitted) to how Tomcat handles sessions and session-id's. But maybe this is just a misconcep

Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-08-09 Thread Rainer Jung
On 09.08.2011 20:45, Lataxes, Karl wrote: > Our clients cannot send or process JSESSIONIDs as they are not web > browsers, but proprietary equipment running embedded software that > sends HTTP POST messages to a servlet on our internal network. The > servlet keeps track of sessions internally by a

Adding two-factor authentication to a Tomcat app??

2011-08-09 Thread sodastream
Given: Commercial application running as a servlet on Tomcat. Tomcat configuration (server.xml, web.xml) is open and may be modified. The app handles its own authentication via a conventional username/password form on a login page. I wanted to add a second factor to the authentication without modi

getScheme

2011-08-09 Thread Mohit Anchlia
tomcat docs for connectors say: scheme: This sets the protocol name as accessed by the ServletRequest.getScheme method. The scheme defaults to http. Is there any other way scheme can be changed by using some Http Headers instead of doing it in connector? -

RE: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-08-09 Thread Lataxes, Karl
Our clients cannot send or process JSESSIONIDs as they are not web browsers, but proprietary equipment running embedded software that sends HTTP POST messages to a servlet on our internal network. The servlet keeps track of sessions internally by assigning a session id which is contained within

Re: Servlet Request URL

2011-08-09 Thread André Warnier
Mohit Anchlia wrote: I think I resolved it. It looks like if I keep the "Host" header set to incoming request it works just fine. I am assuming Proxies do the same thing. And it also looks like HttpServletRequest.getRequestURL uses http header Host to get the host name. Sound a bit like the Har

Re: Servlet Request URL

2011-08-09 Thread Mohit Anchlia
I think I resolved it. It looks like if I keep the "Host" header set to incoming request it works just fine. I am assuming Proxies do the same thing. And it also looks like HttpServletRequest.getRequestURL uses http header Host to get the host name. On Mon, Aug 8, 2011 at 10:50 PM, Mohit Anchlia

Re: Re: Application error after move of site

2011-08-09 Thread Dave Filchak
On 22/07/64 2:59 PM, Pid wrote: On 08/08/2011 13:46, Dave Filchak wrote: Hi, I had to switch hosts and one of the sites that I inherited is a tomcat site. After the move most of the site is fine but on a number of links, I get the following error: Error reading properties file: Please check th

Re: URL rewrite

2011-08-09 Thread André Warnier
Mohit Anchlia wrote: On Tue, Aug 9, 2011 at 1:30 AM, Pid wrote: On 08/08/2011 20:36, Mohit Anchlia wrote: I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST always set? I print

Re: URL rewrite

2011-08-09 Thread Konstantin Kolinko
2011/8/9 Mohit Anchlia : >> Is this a Tomcat or an HTTPD question? > > tomcat. As I understand tomcat support URL Rewriting similar to mod_rewrite. > No, it does not. There are 3rd party external filters that may do the job, e.g. http://www.tuckey.org/urlrewrite/ but they are not a part of Tomca

Re: URL rewrite

2011-08-09 Thread Mohit Anchlia
On Tue, Aug 9, 2011 at 1:30 AM, Pid wrote: > On 08/08/2011 20:36, Mohit Anchlia wrote: >> I need to re-write URL using some Http Headers. Can I use any headers? >> Or only the one listed here? >> >> http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html >> >> Is HTTP_HOST always set? I printed head

Re: URL rewrite

2011-08-09 Thread Pid
On 08/08/2011 20:36, Mohit Anchlia wrote: > I need to re-write URL using some Http Headers. Can I use any headers? > Or only the one listed here? > > http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html > > Is HTTP_HOST always set? I printed headers of my servlet and this is > what I see. I used