我正在尝试将LMS上的SCORM入口点代理到另一个LMS上的内容。清单资源href看起来像:
https://example.com/training/rest/of/the/content/link?key=value
在我的httpd.conf中,我有以下内容:
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>
我遇到的问题是:
我尝试了各种重写和替换,但我觉得我可能会错过这个代理业务的关键组件:/