/var/log/apache2/error.log 中的多个代理:错误

/var/log/apache2/error.log 中的多个代理:错误

我不确定这些警告是针对什么/与什么有关。我应该担心它们还是在有人试图连接到我的服务器时忽略它们?代理模式已启用,但我对此不太担心,我更担心我的 apache 实例显示试图代理的随机 ip 和网址 :?

[Mon Dec 13 19:49:12.127111 2021] [proxy:warn] [pid 992000] [client 162.55.232.112:45408] AH01144: No protocol handler was valid for the URL 192.169.152.51:443 (scheme '192.169.152.51'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Mon Dec 13 19:49:12.203528 2021] [proxy:warn] [pid 992002] [client 162.55.235.124:49258] AH01144: No protocol handler was valid for the URL 192.169.152.51:443 (scheme '192.169.152.51'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Mon Dec 13 19:49:12.825123 2021] [proxy:warn] [pid 992004] [client 162.55.232.112:48362] AH01144: No protocol handler was valid for the URL www.mining-cast.com:443 (scheme 'www.mining-cast.com'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Mon Dec 13 19:49:13.158784 2021] [proxy:warn] [pid 992010] [client 162.55.232.116:39704] AH01144: No protocol handler was valid for the URL sdk.finance:443 (scheme 'sdk.finance'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Mon Dec 13 19:49:14.867535 2021] [proxy:warn] [pid 992009] [client 176.9.19.26:45758] AH01144: No protocol handler was valid for the URL www.mining-cast.com:443 (scheme 'www.mining-cast.com'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Mon Dec 13 19:49:14.988339 2021] [proxy:warn] [pid 992003] [client 162.55.235.124:33712] AH01144: No protocol handler was valid for the URL portugiptv.com:443 (scheme 'portugiptv.com'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Mon Dec 13 19:49:15.730902 2021] [proxy:warn] [pid 992001] [client 162.55.232.116:54246] AH01144: No protocol handler was valid for the URL sdk.finance:443 (scheme 'sdk.finance'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Mon Dec 13 19:49:17.591263 2021] [proxy:warn] [pid 992000] [client 162.55.232.112:41990] AH01144: No protocol handler was valid for the URL beastiptv.best:443 (scheme 'beastiptv.best'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Mon Dec 13 19:49:19.224691 2021] [proxy:warn] [pid 992002] [client 176.9.19.26:41162] AH01144: No protocol handler was valid for the URL dossiers-du-rocher.com:443 (scheme 'dossiers-du-rocher.com'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Mon Dec 13 19:49:20.844906 2021] [ssl:error] [pid 992010] [remote 192.185.52.242:443] AH01961: SSL Proxy requested for localhost.localdomain:80 but not enabled [Hint: SSLProxyEngine]
[Mon Dec 13 19:49:20.844960 2021] [proxy:error] [pid 992010] AH00961: HTTPS: failed to enable ssl support for 192.185.52.242:443 (www.standuptoracism.org.uk)

Apache2 模块

root@localhost:~# apache2ctl -M
 proxy_module (shared)
 proxy_balancer_module (shared)
 proxy_http_module (shared)

答案1

我猜你启用了代理模块。你需要使用以下命令禁用它

a2dismod proxy

可能还有一些其他模块需要禁用。要查看还可以(应该)禁用哪些模块,请查看

apache2ctl -M

答案2

好的,这里介绍如何启用 mod_proxy。

a2enmod proxy
a2enmod proxy_http
a2enmod proxy_balancer
a2enmod lbmethod_byrequests
systemctl restart apache2

除了代理之外,您还需要一个(或多个)用于传送内容的 http 服务器。

http://10.10.0.100 - 代理服务器

http://192.168.0.11- 内容服务器

编辑 /etc/apache2/sites-available/000-default.conf 并将虚拟主机部分更改为

<VirtualHost *:80>
    ProxyPreserveHost On

    ProxyPass / http://192.168.0.11/
    ProxyPassReverse / http://192.168.0.11/
</VirtualHost>

重启 Apache

systemctl restart apache2

现在如果您访问您的代理服务器(http://10.10.0.100) 在 Web 浏览器中,您将看到后端服务器的响应(http://192.168.0.11

相关内容