使用Apache 2.4和独立主机实现安全到安全的代理
我正在尝试将我的LMS上的SCORM入口点代理给另一个LMS上的内容。清单资源href如下所示: 在我的httpd.conf中,我有以下内容:使用Apache 2.4和独立主机实现安全到安全的代理,apache,ssl,proxy,cross-domain,Apache,Ssl,Proxy,Cross Domain,我正在尝试将我的LMS上的SCORM入口点代理给另一个LMS上的内容。清单资源href如下所示: 在我的httpd.conf中,我有以下内容: SSLProxyEngine on RewriteRule ^proxy:.* - [F] ProxyPass /training/ https://theirsite.com/ ProxyPassReverse /training/ https://theirsite.com/ <Location /training/> Set
SSLProxyEngine on
RewriteRule ^proxy:.* - [F]
ProxyPass /training/ https://theirsite.com/
ProxyPassReverse /training/ https://theirsite.com/
<Location /training/>
SetOutputFilter proxy-html
Header add referer https://theirsite.com/
Header set Accept-Ranges none
RequestHeader set referer https://theirsite.com/
RequestHeader unset Accept-Encoding
ProxyHTMLEnable on
ProxyHTMLExtended on
ProxyHTMLURLMap / ppt/
ProxyHTMLURLMap https://example.com/ ppt/
ProxyHTMLURLMap https://example.com/training/ ppt/
ProxyHTMLURLMap ppt/ https://example.com/training/
</Location>
SSLProxyEngine打开
重写规则^proxy:.*-[F]
代理通行证/培训/https://theirsite.com/
ProxyPassReverse/培训/https://theirsite.com/
SetOutputFilter代理html
标题添加引用程序https://theirsite.com/
标题集接受范围无
请求头集引用程序https://theirsite.com/
RequestHeader未设置接受编码
可代理的
ProxyHtmlexOn
ProxyHTMLMAP/ppt/
ProxyHTMLMAPhttps://example.com/ ppt/
ProxyHTMLMAPhttps://example.com/training/ ppt/
ProxyHTMLURLMap ppt/https://example.com/training/
我遇到的问题是:
- 我的manifest href中的值正确地命中了内容主机(因此我的代理值是正确的),但没有返回到,而是返回到,这导致了我的下一个问题
- 当主体返回给我时,我必须映射所有的URL,这不是问题,除了客户端主机实际上正在为特定的JS库使用第三方,并且映射/到一个标准化的值,这样我就可以将整个主体重新标准化,这破坏了特定的链接