The connector receiving request from Apache needs at least the first
attribute added to it:
proxyName="domain.name.com": the domain name of the Apache httpd server
acting as a front end to Tomcat
proxyPort="80": the port number of the Apache httpd server
There is a sample of this in the server.xml distributed with tomcat.
--David
Kristian Rink wrote:
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
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]