OrientDB 的 DocumentRoot 是什么?或者,OrientDB 的网络文件在哪里?

What is OrientDB's DocumentRoot? Or, where are OrientDB's web files?

我正在尝试通过反向代理访问 OrientDB 的 REST API。也就是说,我有一个域 orientdb.mydomain.com 转发到服务器所在的 localhost:2480。我在不安全的网站上运行它,所以我可以访问 http://orientdb.mydomain.com 并打开工作室网站:

http://orientdb.mydomain.com/studio/index.html

但是,这不适用于 https。我收到 404 错误 ("The requested URL /studio/index.html was not found on this server")

我感觉我没有使用正确的 documentroot,或者 OrientDB 以另一种方式生成上面的路径有些有趣。我实际上在任何地方都找不到这个 /studio 目录。

这是我的 ssl.conf 文件中的虚拟主机设置。

<VirtualHost _default_:443>                                                                                    
DocumentRoot "/opt/orientdb-3.0.6/www"
<Directory "/opt/orientdb-3.0.6/www">

        Require all granted
    </Directory>

ServerName orientdb.mydomain.com
#more stuff
</VirtualHost>

顺便说一句,我原来在我的目录标签中有以下选项,但它给出了一个禁止的错误。我将其更改为要求全部获得批准,但现在显示未找到 - 所以我认为我正在取得进展。

    AllowOverride All                                                                                                                                   
    Order allow,deny    

综上所述,是否可以通过这种方式访问​​ OrientDB 服务器,如果可以,我应该将什么作为 DocumentRoot 等?

我认为你做不到。 OrientDB 有自己的嵌入式 HTTP 服务器,所以它唯一可以工作的方法是使用反向代理配置。

您可以在 https 中公开您的 Web 服务器(我猜是 apache HTTP)并在那里终止 "s",代理到 orientdb HTTP 端口 (2480)。

原来不是OrientDB的问题,而是代理的问题。我曾使用虚拟主机在端口 80 上设置代理,但我没有对端口 443 执行相同的操作。将这些设置添加到我在 orientdb.mydomain.com 上的 443 虚拟主机后,我能够访问工作室和 HTTP REST API 通过 HTTPS。

ProxyPass / http://127.0.0.1:2480/
ProxyPassReverse / http://127.0.0.1:2480/

<Proxy *>
       Require all granted
</Proxy>