Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过代理apache运行OpenRDF Sesame_Apache_Tomcat_Rdf_Sesame_Proxypass - Fatal编程技术网

通过代理apache运行OpenRDF Sesame

通过代理apache运行OpenRDF Sesame,apache,tomcat,rdf,sesame,proxypass,Apache,Tomcat,Rdf,Sesame,Proxypass,我的Tomcat ist通过Apache代理,如下所示: ProxyRequests Off ProxyPreserveHost On ProxyPass /tomcat/ http://127.0.0.1:8080/ ProxyPassReverse /tomcat/ http://127.0.0.1:8080/ 呼叫http://example.com/tomcat加载我的Tomcat服务器(如预期的那样) 现在,我将openrdf sesame.war和openrdf workbench

我的Tomcat ist通过Apache代理,如下所示:

ProxyRequests Off
ProxyPreserveHost On
ProxyPass /tomcat/ http://127.0.0.1:8080/
ProxyPassReverse /tomcat/ http://127.0.0.1:8080/
呼叫
http://example.com/tomcat
加载我的Tomcat服务器(如预期的那样)

现在,我将
openrdf sesame.war
openrdf workbench.war
放入我的webapps文件夹。如果我打开

  • 它向
  • 转发给
在转发过程中,路径部分
/tomcat
丢失


如何在OpenRDF Sesame中配置基本路径(例如,
/tomcat
),以便转发不会失败?

解决这一问题的最简单方法就是在Apache配置中包含一个特定于Sesame的反向代理(顺便提一下,如果可以的话,我会使用ajp代理而不是http,这会更有效):

对于工作台:

    ProxyPass /openrdf-workbench ajp://127.0.0.1:8009/openrdf-workbench
    ProxyPassReverse /openrdf-workbench ajp://127.0.0.1:8009/openrdf-workbench
    ProxyPass /openrdf-workbench ajp://127.0.0.1:8009/openrdf-workbench
    ProxyPassReverse /openrdf-workbench ajp://127.0.0.1:8009/openrdf-workbench