[code]
ProxyPass / balancer://mycluster
ProxyPassReverse / balancer://mycluster
[/code]
看上去没什么错误,但是实际上有问题,抛出这样的错误:
[code]
[warn] proxy: No protocol handler was valid for the URL /admin/login_form. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[/code]
返回403错误
看上去特别奇怪,实际上要改成这样
[code]
ProxyPass / balancer://mycluster/
ProxyPassReverse / balancer://mycluster/
[/code]
看出来了吧,少了一个/,这个非常重要,在拼url的时候少这个不行的。
ProxyPass / balancer://mycluster
ProxyPassReverse / balancer://mycluster
[/code]
看上去没什么错误,但是实际上有问题,抛出这样的错误:
[code]
[warn] proxy: No protocol handler was valid for the URL /admin/login_form. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[/code]
返回403错误
看上去特别奇怪,实际上要改成这样
[code]
ProxyPass / balancer://mycluster/
ProxyPassReverse / balancer://mycluster/
[/code]
看出来了吧,少了一个/,这个非常重要,在拼url的时候少这个不行的。
本文解决了一个关于Apache中ProxyPass配置的问题。原本配置缺少了必要的斜杠导致出现403错误和警告信息。通过添加缺失的斜杠,成功解决了问题。
8万+

被折叠的 条评论
为什么被折叠?



