Good day,

I have the flow as follow:

(public ip) --> ( web server --> ( java web app server

In my Apache web server, I have configure the following in my httpd.conf:

ProxyPass "/image.web" ""
ProxyPassReverse "/image.web" ""

The network successfully reach to my web app server (, however, in my java web application, I saw the request is servername is, I believe this is because of my configuration in Apache Web Server, May I know how can I configure, so that in my java web application, I can detect the request servername is, which is the public ip.


Just found the answer:

ProxyPreserveHost On


| improve this answer | |
  • 1
    Consider accepting your own answer :) – LeRouteur Oct 13 at 6:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.