简体   繁体   English

Apache反向代理阻止SAP Fiori启动板URL

[英]Apache Reverse proxy blocking SAP fiori launchpad URL

I am working on SAP Fiori applications(HTML application), Fiori uses below url 我正在使用SAP Fiori应用程序(HTML应用程序),Fiori使用以下网址

/sap/opu/odata/UI2/PAGE_BUILDER_PERS/PageSets('%2FUI2%2FFiori2LaunchpadHome')?$expand=Pages/PageChipInstances/Chip/ChipBags/ChipProperties,Pages/PageChipInstances/RemoteCatalog,Pages/PageChipInstances/ChipInstanceBags/ChipInstanceProperties,AssignedPages,DefaultPage / sap / opu / odata / UI2 / PAGE_BUILDER_PERS / PageSets('%2FUI2%2FFiori2LaunchpadHome')?$ expand = Pages / PageChipInstances / Chip / ChipBags / ChipProperties,Pages / PageChipInstances / RemoteCatalogs,Pages / PageChipInstanceProsings,Pages / PageChipInstancePross默认页

The url works fine in the intranet,whereas in internet the above url is blocked by apache.Kindly suggest a solution 该网址在Intranet中工作正常,而在互联网中,上述网址已被apache阻止。请提出一种解决方案

When we use Apache proxy , the reverses proxy automatically decodes the entire URL before forwarding the request to the backend. 当我们使用Apache代理时反向代理会在将请求转发到后端之前自动解码整个URL。 '%2F' is decoded to '/'. '%2F'被解码为'/'。

Solution: Configure proxy server to make sure it will pass the request URL not decoded. 解决方案:配置代理服务器以确保它将传递未解码的请求URL。 Configure your virtual host using AllowEncodedSlashes NoDecode and nocanon 使用AllowEncodedSlashes NoDecodenocanon配置虚拟主机

ProxyPreserveHost on
AllowEncodedSlashes NoDecode

ProxyPass /     https://IP:port/ nocanon
ProxyPassReverse /  https://IP:port/

You can see detail answer here 您可以在此处查看详细答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM