首页 文章

在Apache Proxy后面运行GraphDB

提问于
浏览
2

我将grapdb作为独立服务器运行 . 该服务从http://localhost:7200开始 . 我需要配置Apache重定向到graphDB工作台,通过端口80访问它:

ProxyPass /graphdb http://localhost:7200
    ProxyPassReverse /graphdb http://localhost:7200

但是,当访问http://server/graphdb时,CSS和javascript的所有加载都会失败,因为它们是从http://server/css/xhttp://server/webjars/y加载的,而不是http://server/graphdb/css/xhttp://server/graphdb/webjars/y .

是否有可能访问Apache代理后面的GraphDB工作台以及为此准备的配置是什么?

1 回答

  • 1

    目前,只有外部(Apache)和内部(GraphDB)端的根相同,才有可能实现这一点 . 在您的情况下,外部的是/ graphdb,内部的是/ . 我们已计划支持在GraphDB 7.1中指定显式外部URL . 作为临时解决方法,您可以创建这种类型的Apache重定向:

    ProxyPass / http://localhost:7200
    ProxyPassReverse / http://localhost:7200
    

    并将其分配给单独的虚拟主机,例如graphdb.your-domain.xx,仅用于访问GraphDB .

相关问题