我从未收到有关在Apache中使用代理的适当说明,并且到目前为止,主要由我自己进行管理。确实可以为该错误提供帮助。
<IfModule mod_ssl.c>
<VirtualHost *:443>
DocumentRoot ...
ServerName ...
SSLCertificateFile ...
SSLCertificateKeyFile ...
Include /etc/letsencrypt/options-ssl-apache.conf
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
</Proxy>
<Location /test1>
ProxyPass http://127.0.0.1:3001/
ProxyPassReverse http://127.0.0.1:3001
</Location>
<Location /test2>
ProxyPass http://127.0.0.1:3000/
ProxyPassReverse http://127.0.0.1:3000
</Location>
</VirtualHost>
</IfModule>
问题是我收到了/ test2 /的上述错误代码,但没有收到/ test1 /的错误代码。感谢任何有建议的人。