新手无法让英镑反向代理工作 - 有什么指示吗?
我只需要在 Ubuntu 上设置最简单的 pound 服务器,但无法得到 pound 工作或正在做任何事情的任何迹象......可能是对我的困境的一个非常简单的答案 - 非常感谢任何帮助!
首先,我安装了 pound:
sudo apt-get install pound
然后我在 /etc/default/pound 中设置startup=1(因为它要求我这样做以允许它启动)
对于基本测试,我只希望任何流量到“http://” localhost:8881”,当在本地计算机上的网络浏览器中输入以转至 google 时,因此我将 /etc/pound/pound.cfg 修改为如下所示,我希望这能给我想要的结果:
ListenHTTP
Address 127.0.0.1
Port 8881
## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
xHTTP 0
Service
BackEnd
Address www.google.com
Port 80
End
End
End
最后,我从控制台重新启动磅:
> sudo pound
starting....
执行此操作后,似乎什么也没有发生,并且控制权返回到控制台。如果我访问 http://localhost:8881 它是一个死页面。当我运行“ps -AL”时,我没有看到任何名为“pound”的进程。当我检查“cat /var/log/messages”时,没有出现与英镑相关的消息。
由于我是一个完全的新手,所以我的问题可能有一个非常简单的答案......有人知道它是什么吗?感谢您抽出时间!
I just need to set up the very simplest possible pound server on Ubuntu, but can't get any sign of life that pound works or is doing anything... probably a very simple answer to my dilemma- Any help is greatly appreciated!
First, I installed pound:
sudo apt-get install pound
Then I set startup=1 in in /etc/default/pound (because it asked me to do this to allow it to start)
For a basic test, I just want any traffic to "http://localhost:8881" when typed into my web browser on the local machine to go to google instead, so I modified /etc/pound/pound.cfg to read as follows, which I hoped would give me the result I want:
ListenHTTP
Address 127.0.0.1
Port 8881
## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
xHTTP 0
Service
BackEnd
Address www.google.com
Port 80
End
End
End
Finally, I restarted pound from the console:
> sudo pound
starting....
After doing this, absolutely nothing seems to happen and control is returned to the console. If I go to http://localhost:8881 it is a dead page. When I run "ps -AL" I do not see any process named "pound". When I check "cat /var/log/messages" no message related to pound appears.
Since I'm a complete newbie there's probably a dead simple answer to my problem... Anyone know what it is? Thanks for your time!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我结束这个问题是因为我找到了另一个解决方案,并且不希望人们将精力花费在我不再需要的东西上。
(我的解决方案是使用另一个 Linux 代理服务器“tinyproxy”中的反向代理功能 - 它一开始就可以工作,并且更容易配置为反向代理,至少对于像我这样的新手来说)
I'm closing this question because I found another solution and don't want people to expend energy on something I no longer need.
(My solution was to use the reverse proxy features in "tinyproxy", another linux proxy server- It worked right out of the gate and is much easier to configure as a reverse proxy, for a newbie like me at least)