Hi all;

I do have a web environment running inside my LAN in a tomcat container,
forcing users through HTTP Basic authentication. For now and locally,
this uses to work well - the browser is prompting the user with a HTTP
login window, and everything is fine.

Right now, I need to expose this service, and, as for most of the other
web sites hosted in our LAN, this includes using an apache2 in a DMZ
environment acting as Reverse Proxy using mod_rewrite. So far, so good.

My setup is something like that:


        RewriteEngine On
        RewriteLogLevel 5
        RewriteLog "/var/log/apache2/rewrite.log"

        RewriteRule ^/pcd/(.*) http://192.168.1.242:8080/pcd/$1 [P] [L]


It works, which I hoped. But it doesn't work _right_. Whenever
requesting an URL like

http:/<domain>/pcd/get?...      ,

I am prompted to log in using HTTP auth. But then, after this happened,
the browser tries to access 192.168.1.242 instead of <domain>. This is
obviously not working, and this also ain't what I want. But I wonder why
mod_rewrite doesn't work well in this situations.

Explanations, anyone? Or hints how to get out of this?
Much appreciated, if so.


TIA and bye,
Kristian



-- 
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771
"Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam
träumen, ist das der Anfang einer neuen Wirklichkeit." (Hundertwasser)


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to