英文:
How to deploy revel framework(Go lang) using nginx
问题
我喜欢问一下,我如何使用nginx在不同的监听端口(例如8089端口)上部署我的revel框架应用程序。谢谢。
英文:
I like to ask, how can i deploy my revel framework app using nginx in different linten port, for example port 8089. Thank you
答案1
得分: 1
根据你的问题,我猜你想要从nginx反向代理到你的revel框架应用程序。基本上,使用代理传递可以将HTTP请求头从一个端口/应用程序转发到另一个端口/应用程序。这样可以直接使用你的Web应用程序。
如果是这种情况,你需要执行以下操作:
- 在某个端口上启动应用程序(比如8089)
- 配置Nginx以处理从端口80/443到该端口的反向代理Web连接。
- 访问Nginx代理传递配置指定的URL。
如果你的需求不是这个,请告诉我,我会尽力提供更多帮助!
英文:
Based on your question, I assume you are trying to reverse proxy from nginx to your revel framework application. Essentially using proxy pass forwards HTTP request headers from one port/application to another. This allows you to use your web application directly.
If this is the case, you'll need to do the following:
- Start the app on some port (say 8089)
- Configure Nginx to handle reverse proxy web connections from port 80 / 443 to that port.
- Navigate to the URL specified by the Nginx proxy pass configuration.
This link from Nginx should be helpful in setting up the proxy pass.
If this is not what you are trying to achieve, let me know and I'll try to help out some more!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论