简体   繁体   中英

apache2 proxy balancer - passing server name

I'm using apache2 as a local proxy balancer between the web and a jboss machine. i've used the following configuration:

<Proxy balancer://mycluster>
        BalancerMember http://localhost:8080
</Proxy>
ProxyPass /test balancer://mycluster

if i call my machine with www.mymachine.com/test then the call is passed to JBoss, but in the request it seems that it was called with 'localhost'.

how can I make sure the correct server name is passed as well?

Aviad

我需要做的就是添加:ProxyPreserveHost On

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM