On 11/14/02 2:12 PM, Randy Kobes wrote:
> On Thu, 14 Nov 2002, John Siracusa wrote:
>> Assume I have a front-end (non-mod_perl) proxy server that
>> supports both HTTP and HTTPS.  I want to know, from within my
>> Perl code on the back-end (HTTP-only) mod_perl server, if the
>> current request was ProxyPass-ed to me based on an original
>> HTTP or HTTPS request from the user.
>> 
>> There doesn't appear to be a way to add headers to the proxy
>> request on a per-virtual-host basis using mod_proxy, and I
>> don't see any other headers that I can use to distinguish
>> between an HTTP or HTTPS front-end server. Any ideas?
> 
> If your front-end proxy server has 'ProxyVia on' enabled, a Via
> header would get sent.  According to rfc2068, the protocol name
> should, and port may, be supplied in this header if these aren't
> the defaults - would this be enough to enable your mod_perl
> server to distinguish between an HTTP or HTTPS request?

I tried turning on ProxyVia, but all I got was the HTTP protocol version
("1.1") and the host ("www.foo.com"), but no scheme string (e.g. "http://";
or "https://";)

-John

Reply via email to