Subject: | CGI.pm protocol mehtod broken for reverse proxy running 443=>80 |
My configuration is
client => https => proxy => http => server => CGI => CGI.pm application
developer => http => server => CGI => CGI.pm application
From sub protocol:
Show quoted text
> return 'https' if uc($self->https()) eq 'ON';
I have no '^HTTPS' environment variables
Show quoted text> return 'https' if $self->server_port == 443;
SERVER_PORT 80
Show quoted text> my $prot = $self->server_protocol;
SERVER_PROTOCOL HTTP/1.1
The only work around I can see is to set an apache variable in the http
server configuration.
SetEnv HTTPS_REVERSE_PROXY ON
But, this breaks the developer interface which hits the site over http.
There is nothing in the environment that identifies the client is https
except that the traffic is coming from the proxy which has a
REMOTE_ADDR = 10.1.1.255/24
This looks like a limitation of reverse proxy more so than CGI.pm but
I'm not sure CGI should "guess" wrong.
Thanks,
Mike
mrdvt92