【发布时间】: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