0

我已经在 ubuntu 19.04 上安装了 apache2.4.38,并从源代码构建了 mod_cluster .so 文件并使用 a2enmod 启用了它们。我还设置了我的虚拟主机:

<IfModule manager_module>
Listen 192.168.1.41:1002

ManagerBalancerName appbalancer
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off

<VirtualHost 192.XXX.X.XX:1002>    
    <Directory /> 
        Require host host1 host2
    </Directory>        
    EnableMCPMReceive
    AdvertiseFrequency 5
    
    <Location /mod_cluster-manager>
         SetHandler mod_cluster-manager
         Require all granted
    </Location>
    
    MaxKeepAliveRequests 0
    
    ProxyPass / balancer://appbalancer stickysession=JSESSIONID|jsessionid nofailover=on
    ProxyPassReverse / balancer://appbalancer
    
    <Proxy balancer://appbalancer>
        BalancerMember https://host1:port
        BalancerMember https://host2:port
    </Proxy>
            
    ProxyPreserveHost on
  </VirtualHost>
</IfModule>

但是,每当我尝试使用虚拟主机的端口 1002 在浏览器上启动我的应用程序时:

192.XXX.X.XX:1002/path/to/index.html

它抛出 503 但出现在端口 80 上。即,使用

192.XXX.X.XX/path/to/index.html

有了这种行为,我不确定发生了什么,也不知道如何让我的应用程序使用配置的端口启动。我将不胜感激有关此的任何帮助。

4

0 回答 0