前提说明:
Apache version: 2.4.18
Linux: Ubuntu 16.04 LTS
jupyter notebook: docker run --name notebooks /
-it -p 8888:8888 /
-v /home/name/notebook:/notebooks /
tensorflow/tensorflow:1.3.0
-----------------------------------------------
sudo a2enmod proxy proxy_balancer proxy_http
正常使用:
100.100.100.100:8888 (使用OK)
反向代理设置尝试:
在/etc/apache2/sites-enabled/000-default.conf增加:
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /notebook http://100.100.100.100:8888
ProxyPassReverse /notebook http://100.100.100.100:8888
反向代理设置结果:
重启Apache2,访问100.100.100.100/notebook
网站自动跳转到100.100.100.100/tree? 并且404.
问题:
如何正确配置能够使用100.100.100.100/notebook进行正常访问?