Nginx代理未加载静态文件

时间:2019-10-29 23:07:08

标签: nginx reverse-proxy nginx-location

我已经将此应用程序(polynote https://github.com/polynote)部署在远程计算机上(侦听端口8192),现在我希望可以通过浏览器访问UI。使用ssh端口转发,一切正常。现在,我想使用nginx设置一些规则(我已经使用它来代理jupyter之类的东西)以使其自动化。这是我使用的基本规则

location /polynote {
   proxy_pass              http://localhost:8192;
   proxy_pass_request_headers on;
}

当尝试从浏览器连接到`remote-machine:/ polynote'时,我在服务器日志中看到连接到达

[blaze-selector-1] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Accepted connection from /127.0.0.1:46673

但是浏览器页面仍然空白,并且任何地方都没有记录错误。

使用Chrome开发者工具检查网络,我看到这些数据到达了“网络”标签

enter image description here 而正常运行的安装(在我的计算机中尝试过)报告此网络流量

enter image description here

您知道为什么我会丢失静态文件吗?

0 个答案:

没有答案
相关问题