我有一台新的rasperryPi web服务器,运行着raspbian,我正试图使用它从FieldServer Tech (fieldserver.com)在我们的intranet上代理到启用web的设备。在/etc/apache2/sites available/default中,我添加了以下行:
<Location /modbus/>
ProxyPass http://192.168.10.124/
</Location>重新启动webserver之后,当我尝试浏览到定义的代理地址时
http://192.168.10.7/modbus/我从FieldServer设备获得密码提示,但验证后得到一个错误,指示无法加载初始页面:
Not Found
The requested URL /app/profiles/profiles.htm was not found on this server.
Apache/2.2.22 (Debian) Server at 192.168.10.7 Port 80有什么方法可以从apache中解决这个问题,还是FieldServer设备的问题?
更多系统信息:
$ cat /etc/os-release*
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
$ dpkg-query -l | grep apache
ii apache2 2.2.22-13+deb7u3 发布于 2014-10-20 02:20:56
我相信您需要将ProxyPassReverse指令添加到apache配置中:
<Location /modbus/>
ProxyPass http://192.168.10.124/
ProxyPassReverse http://192.168.10.124/
</Location>如果您有兴趣的话,这个answer对ProxyPassReverse做什么有一个非常简洁的解释。
https://stackoverflow.com/questions/26455199
复制相似问题