-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jacob,

Jacob Rhoden wrote:
>> What is your environment? Perhaps we can come up with a better solution.
>>   
> Its a system where we have no permission on any files except user home
> directories and the cgi-bin directory. So we can run tomcat as a
> non-unprivileged user on a high port, but we need the ability to allow
> files to be served through the apache web server on port 80.

Hmm. And the system administrator cannot be convinced to add
configuration directives for your virtual host or anything like that? Hmm...

Do you have access to PHP? I think you might be able to get away with a
small PHP script that uses an HTTP include. I think that would be easier
than writing a Perl-based (or worse, C-based) CGI program.

> So it has to be something we can install in the cgi-bin directory. In
> the past we have had a perl script to simply make a connection to an app
> server and pass the data through.

Can you use that one? Or will it not work for Tomcat for some reason?

Using PHP, you should be able to use the HttpMessage
(http://php.net/manual/en/http.HttpRequest.php) object and stuff it with
cookies, headers, parameters, and the request body from the incoming
request. Make the request and stream the result.

Note that I've never tried this and so I could be completely wrong.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF7teH9CaO5/Lv0PARAkEkAKCP2XAZXdt7rFeIipMnLw3w2j1D/ACfadU9
uYc4R2TqzAZGR2igDXj7G/8=
=1MHZ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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