Apache / 2.4.18(Ubuntu),代理反向和问题

时间:2020-07-17 23:46:30

标签: reverse-proxy mod-proxy

我正在尝试配置一个简单的反向代理,但找不到页面(404)。

这是我的虚拟主机

<IfModule mod_ssl.c>
    <VirtualHost _default_:443>
        ...
        ProxyRequests Off
        ProxyPreserveHost On
        
        <Proxy *>
            Order deny,allow
            Allow from all
        </Proxy>
        
        SSLProxyEngine on
        SSLProxyVerify none
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLProxyCheckPeerExpire off

        ProxyPass /consumo/hierba https://server-target.com/hierba-buena
        ProxyPassReverse /consumo/hierba https://server-target.com/hierba-buena 
    </VirtualHost>
</IfModule>

https://server-target.com/hierba-buena是bluehost,我的服务器是来自AWS的EC2

感谢您的回答。

0 个答案:

没有答案