× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi All,

Currently I configured Apache HTTP Server in IBMi as a Reverse Proxy
(Server RP1 - TLS Enabled) to redirect the requests to an IBMi IWS Services
(Server TG1 - TLS Enabled) and Java Services (Server TG2 - TLS Enabled).

When processing the request in the Target Server (TG1) I am seeing the
REQUEST_URL header does not contain the Host which the client is trying to
access, when I search online "ProxyPreserveHost On" this directive in the
reverse proxy will send the original host to the target server.

But when I use this directive I am getting error response as below

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
<p>The requested URL was not found on this server.</p>
</body></html>

When I check the Target Server access Log, I got the below message
10.10.241.54 0 - - [28/Sep/2022:05:55:25 -0700] "GET
/path1/path2?fld1=val1&fld2=val2 HTTP/1.1" 404 196 "-"
"PostmanRuntime/7.29.2"

Is the ProxyPreserveHost not be used along with TLS enabled transactions?
Or if we are using then do we need to use any additional directives
together?

Any help will be very much appreciated.

Regards,
Suren

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.