【问题标题】:iPython/Jupyter Notebook Server behind Apache2Apache2 背后的 iPython/Jupyter Notebook Server
【发布时间】:2023-03-10 09:07:01
【问题描述】:

我正在尝试在Apache2 后面运行我的Jupyter 笔记本服务器。

我在一个 IP 为 192.x.x.1 且浮动 IP 为 85.x.x.1 的 OpenStack 服务器上执行此操作。我的域名是(形式)notebook.project.company.org,主机名是jupyter-notebook,所以/etc/hosts有以下内容

127.0.0.1 localhost
127.0.1.1 jupyter-notebook

我已经按照here 的描述设置了 Jupyter 服务器,可以在 *notebook.project.company.org:888** 访问它,但我想在 notebook.project.company.org 访问它时间>。

我正在尝试使用 Apache 执行此操作,并尝试遵循解决方案 here,但我对何时使用 domain/localhost/127.0.0.1/192.x.x.1 等感到困惑。

目前我的jupyter_notebook_config.py

c.NotebookApp.ip = '192.x.x.1'
c.NotebookApp.port = 8888

而且 apache conf 文件有

<VirtualHost *:80>
    ServerName notebook.project.company.org
    ProxyPass / http://192.x.x.1:8888/
    ProxyPassReverse / http://192.x.x.1:8888/
</VirtualHost>

有人能具体说明我应该使用哪些 IP 地址以及在哪里使用吗?

【问题讨论】:

    标签: apache ubuntu dns ipython jupyter-notebook


    【解决方案1】:

    我不能说我之前在 Apache 后面配置了 iPython Notebook,但我已经在它后面配置了 Tomcat 服务器。我想这里会是类似的。

    对于 ProxyPass,我使用 127.0.0.1 IP 映射到在不同端口上运行的 tomcat 服务器。你也可以试试。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-09-23
      • 1970-01-01
      • 2017-05-28
      • 1970-01-01
      • 2018-10-25
      • 1970-01-01
      • 2016-12-27
      相关资源
      最近更新 更多