Reg: Reverse Proxy as Apache HTTP Server in IBMi
Suren K <[email protected]> Wed, 28 Sep 2022 10:23:48 -0400
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <CAHZ5qthLP0uc2_3tEPcTcdTqy+hT1UoDddCG-JBZBMCUB5ZYVw@mail.gmail.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 -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.