[EMAIL PROTECTED] Question about proxy_ajp, sessions and paths...

2007-09-23 Thread Haim Ashkenazi
Hi

I'm trying to reverse proxy a tomcat server with proxy_ajp.


If The path of the URL is identical to the path of ajp, sessions are
kept without a problem:
ProxyPass /abc/ ajp://localhost:8009/abc/

But if I do it like this:
ProxyPass / ajp://localhost:8009/abc/
sessions are not kept in tomcat. every request is like a new one.

Is this a normal behavior? Is there a workaround for that?

Please help
--
Haim

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Question about proxy_ajp, sessions and paths...

2007-09-23 Thread Haim Ashkenazi
Hi

I'm trying to reverse proxy a tomcat server with proxy_ajp.


If The path of the URL is identical to the path in ajp, sessions are
kept without a problem:
ProxyPass /abc/ ajp://localhost:8009/abc/

But if I do it like this:
ProxyPass / ajp://localhost:8009/abc/
sessions are not kept in tomcat. every request is like a new one.

Is this a normal behavior? Is there a workaround for that?

Please help
--
Haim

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Question about proxy_ajp, sessions and paths...

2007-09-24 Thread Haim Ashkenazi
On 9/24/07, Sander Temme <[EMAIL PROTECTED]> wrote:
>
> On Sep 23, 2007, at 5:13 AM, Haim Ashkenazi wrote:
>
> > ProxyPass / ajp://localhost:8009/abc/
> > sessions are not kept in tomcat. every request is like a new one.
> >
> > Is this a normal behavior? Is there a workaround for that?
>
> Yes, because Tomcat will set a JSESSIONID cookie for path /abc, and
> the browser will not send that back because it's going to path /
> foo.jsp and not /abc/foo.jsp.
>
> You need to have mod_proxy munge the cookie path on the way out.  It
> has a directive for that, but I'm too tired to look that up right now.
Thanx, I've looked it up, found it and it solved the problem.

The directive was:
ProxyPassReverseCookiePath /abc /

Bye
--
Haim

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Strange problem mod_proxy_ajp, jboss and sessions.

2008-03-04 Thread Haim Ashkenazi
Hi

I have a strange session keeping problem between apache 2.2.3 and
jboss 4.2.2. The java side of the problem is documented in the seam
framework forum
(http://www.seamframework.org/Community/StatelessSessionBeanAndModproxyajp)
including a demo application to demonstrate the problem.

In general, the problem is that when I access jboss directly I get the
correct responce, but when I access it through apache with very simple
mod_proxy_ajp configuration (ProxyPass /someplace/
ajp://localhost:8009/someplace/), I don't get the result.

This problem is probably due to a combination of proxy settings and
how jboss seam handles session, so if anybody here knows also
java/seam please take a look at the post and see if you have any
ideas.

Thanks.
-- 
Haim

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[users@httpd] RewriteRule and enabling pcre UTF-8 mode

2011-04-14 Thread Haim Ashkenazi
Hi

I'm having a problem matching a single character in case of UTF8 characters
(hebrew in my case).

With rewrite rule (sorry for the hebrew in the example, but whenever you see
'?' it's a sign that it's not good :):

   - RewriteRule ^/users/(.)(.*) /users/$1/$2 [L]

when going to /users/משהכהן
I see in the logs:

> go-ahead with /var/www/html/users/?/?שהכהן [OK]


After searching the pcre docs, I've found that I have to enable UTF-8 mode.
In nginx I can do it like this:
rewrite (*UTF8)^/users/(.)(.*) users/$1/$2 last;

But the (*UTF8) syntax causes a syntax error in httpd 2.2.3 (CentOS 5.x).

Any ideas how to enable UTF-8 mode in RewriteRule?

Thanks in advance
-- 
Haim


Re: [users@httpd] RewriteRule and enabling pcre UTF-8 mode

2011-04-14 Thread Haim Ashkenazi
Hi

On Thu, Apr 14, 2011 at 1:16 PM, Nick Kew  wrote:

>
> On 14 Apr 2011, at 10:32, Haim Ashkenazi wrote:
>
> > But the (*UTF8) syntax causes a syntax error in httpd 2.2.3 (CentOS 5.x).
>
> What's the error message?  Can't see anything in mod_rewrite that would
> reject a valid pattern, so I wonder if the pcre you've linked was compiled
> without utf8 support?
>
Well, it's compiled with UTF-8 support, but I found that it's a different
version then what I'm running with nginx. The pcre installed on the nginx
machine accepts the (*UTF8) notation while the pcre on the httpd machine
doesn't. The way to enable UTF8 on the pcre in the httpd machine is to add
the '8' option at the end (e.g, /(.)(.*)/8). I don't know how to do it on
the rewrite rule as '/8' will mean something else there.

Thanks

-- 
Haim