Apache服务器没有收听localhost?


1

我在我的Linode服务器上使用Apache 2.4。3天前一切都还可以,但是现在当我从我的linode服务器访问http://127.0.0.1/时,服务器访问日志显示我从公共IP访问它

106.184.*.* - - [09/Feb/2017:00:56:28 +0800] "GET / HTTP/1.1" 

它应该是:

127.0.0.1 - - [09/Feb/2017:00:56:28 +0800] "GET / HTTP/1.1" 

我3天前在我的Linode服务器上安装了一个l2tp服务器,这可能是问题所在。

Answers:


0

这是iptables的问题。

iptables -t nat -A POSTROUTING -j MASQUERADE
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.