簡體   English   中英

mod_proxy / proxypass錯誤

[英]mod_proxy / proxypass error

我在mod_proxy和proxypass指令中出現以下錯誤:

我的vhost文件:

    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_http_module modules/mod_proxy_http.so


    <VirtualHost *:80>
    #ForensicLog logs/debuglog
    ServerName updatefw.example.com
    ServerAdmin support@example.com
    ErrorLog logs/updatefw-error.log
    CustomLog logs/updatefw-access_log common
    ProxyPass / balancer://test
    ProxyPassReverse / balancer://test

    <Proxy balancer://test>
      BalancerMember http://10.10.20.12:80
    </Proxy>

</VirtualHost>

當我瀏覽updatefw.example.com時,我從索引文件中獲得200:

[root@10.10.20.12 updatefw.example.com]# pwd
/var/www/vhosts/updatefw.example.com
[root@10.10.20.12 updatefw.example.com]# cat index.html

OK

但是,當我嘗試瀏覽子目錄中的文件時,我收到500錯誤:

http://updatefw.example.com/pepe/asdf.txt

/var/www/vhosts/updatefw.example.com/pepe
[root@10.10.20.12 pepe]# ls
asdf.txt

錯誤日志:

[Wed Apr 20 11:43:53.046606 2016] [proxy:warn] [pid 27551] [client 10.20.1.1:56553] AH01144: No protocol handler was valid for the URL /pepe/asdf.txt. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

我不知道出現了什么問題,因為我正在加載mod代理http模塊。 Brosing http://10.10.20.12/pepe/asdf.txt工作正常

有什么想法嗎?

解決了:

ProxyPass / balancer://test/

ProxyPassReverse / balancer://test/

需要一個/后面的平衡器名稱。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM