如何设置RDF4J工作台的默认服务器?

时间:2017-05-23 15:06:32

标签: amazon-web-services tomcat dns rdf4j

想象我在http://1.2.3.4

的AWS服务器上运行了RDF4J服务器和工作台

...我最近通过AWS路由53注册了域example.com,并将其指向http://1.2.3.4我的AWS安全组已为我现在使用的笔记本电脑打开了所有端口。

如果我使用网络浏览器访问http://example.com:8080/rdf4j-server,则会立即显示预期的网络界面。

但是,如果我尝试访问http://example.com:8080/rdf4j-workbench,则该页面大约需要一分钟才能加载。完成后,RDF4J Server URL设置为http://example.com:8080/rdf4j-server。单击左侧的任何探索链接将导致waiting...

如果我在网络界面中将RDF4J Server URL更改为http://localhost:8080/rdf4j-server,那么我就可以浏览,浏览,查询等。

有没有办法设置工作台的默认服务器?我没有看到任何在我的RDF4J主页中看起来相关的参数文件/opt/tomcat/.RDF4J我也没有看到该文件夹​​中的日志文件中的任何错误。

catalina.out中存在可能相关的超时错误:

23-May-2017 14:45:09.597 WARNING [http-nio-8080-exec-6] org.eclipse.rdf4j.workbench.proxy.ServerValidator.canConnect java.net.ConnectException: Connection timed out (Connection timed out)
 java.net.ConnectException: Connection timed out (Connection timed out)

我也对名称解析技巧持开放态度。我在/etc/hosts添加了以下行。这似乎有用,但对我的口味来说似乎有些过于狡猾。

127.0.0.1 example.com

1 个答案:

答案 0 :(得分:0)

I'm not immediately sure why using the example.com server address from the Workbench fails when direct access clearly works.

But as for how to configure the server address the Workbench uses: it's normally extrapolated from the location of the Workbench (that is, if it's on the same host), or if that doesn't work, the Workbench leaves it empty until you manually fill it out. Once set though, the value should be saved in a browser cookie, so upon next visit you shouldn't have to re-enter it.

If that fails either your browser is configured to reject cookies, or you may have found a bug.