【发布时间】:2020-12-19 11:12:29
【问题描述】:
我正在尝试将 nuxt 博客部署到运行 nginx 的虚拟专用服务器。 当我浏览到https://exampledomain.com/articles时,应该可以访问该博客
我已经成功地在服务器上运行 npm run dev ......该应用程序正在服务器上的 localhost:3000 上运行......
我需要在服务器上设置一个反向代理来将所有请求从https://exampledomain.com/articles/重定向到localhost:3000
我已经尝试了两次,但都失败了......当我浏览 https://exampledomain.com:3000 时,应用程序正在永远加载......当我转到 https://exampledomain.com/articles 时,它显示“页面无法正常工作”或“内部服务器错误” "
请帮忙
【问题讨论】:
-
我写了一篇关于它的博客:blogxon.com/articles/how-to-deploy-nuxt-on-a-vps
标签: node.js api nginx nuxt.js nginx-reverse-proxy