如果您在 products.company.com 上的 Web 服务器是 Apache,您可以设置 ProxyPass。
如果您无法修改 Web 服务器配置,那么 products.company.com 上的简单代理 cgi 可以解决问题:
#!/usr/bin/perl
use LWP::UserAgent;
use CGI qw(:standard);
my $URL='http://bugzilla.internal.com/jsonrpc.cgi';
my $q = new CGI;
my $query = &query_string();
my $req = HTTP::Request->new(POST => $URL);
$req->content_type('application/x-www-form-urlencoded');
$req->content($query);
my $ua = LWP::UserAgent->new;
$res = $ua->request($req);
if ($res->is_success) {
printf "Content-Type: %s\n\n", $res->header('Content-Type');
print $res->content;
} else {
printf "Content-Type: text/plain\n\n";
print "Error: " . $res->status_line . "\n";
}
print $cgi->header(-type => 'text/xml');
print $response->decoded_content;