Apache ProxyPass - 未找到接收 404 页面

Apache ProxyPass - receiving 404 page not found

我第一次使用apache 来管理站点。问题是当我添加 ProxyPass / http://127.0.0.1:888/ 时它有效,但是当我将其更改为 ProxyPass /swarmpit http://127.0.0.1:888/ 时它不起作用并且我得到 404 页面未找到。下面是截图中的解释。

我的/etc/apache2/sites-available/000-default.conf长得像

当我访问 swarmpit 时,它显示 404 未找到。

但是当我将 /etc/apache2/sites-available/000-default.conf 更改为

效果很好

我是否缺少访问 /swampit 的任何内容

您在 curl 命令中拼错了 URL。在您的 curl 命令中,您使用的是 swampit,而在您的 conf 文件中,您使用的是 swarmpit.