Re: Reg: Reverse Proxy in IBMi

Brad Stone <[email protected]>
Newsgroups gmane.comp.systems.as400.web
Message-ID <CAAGV8OcVgKfwT9ZNTEq9kXEZjSD+QxmB3x_NStmLMY6ai8X_1A@mail.gmail.com>
Here's a proxy I'm using.  I know we were chatting about this a year or so
ago and someone figured out the puzzle... :)

so I'm passing bvstools.com to xx.xx.xx.35 and fieldexit.com to xx.xx.xx.37
but all traffic comes in on xx.xx.xx.32

LoadModule proxy_http_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_connect_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_ftp_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule ibm_ssl_module /QSYS.LIB/QHTTPSVR.LIB/QZSRVSSL.SRVPGM

Listen xx.xx.xx.32:80
Listen 1xx.xx.xx.32:443

#Stuff here to redirect port 80 to port 443.

<VirtualHost xx.xx.xx.xx.32:443>
   SSLAppName BVSTOOLS_SSL
   SSLServerCert "bvstools2021"
   SSLEngine On
   SSLCacheDisable
   ServerName bvstools.com
   ServerAlias bvstools.com
   ServerAlias www.bvstools.com
   ServerAlias m.bvstools.com
   ProxyPass / http://xx.xx.xx.35/
   ProxyPassReverse / http://xx.xx.xx.35/
   ProxyPreserveHost On
</VirtualHost>

<VirtualHost xx.xx.xx.32:443>
   SSLAppName FIELDEXIT_SSL
   SSLServerCert "fieldexit2021"
   SSLEngine On
   SSLCacheDisable
   ServerName fieldexit.com
   ServerAlias fieldexit.com
   ServerAlias www.fieldexit.com
   ProxyPass / http://xx.xx.xx.37/
   ProxyPassReverse / http://xx.xx.xx.37/
   ProxyPreserveHost On
 </VirtualHost>

On Mon, Jan 10, 2022 at 12:19 PM Suren K <[email protected]> wrote:

> Hi All,
>
> Currently I am using Reverse proxy in IBMi which in turn redirects the
> requests into two other servers(one IBMi IWS and another one Java Web
> Service windows Server).
>
> I created a new HTTP Server (reverse proxy server) in IBMi using HTTP Admin
> and added the below lines in the HTTP Server Configuration file
> (httpd.conf)
>
> LoadModule proxy_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
> LoadModule proxy_http_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
> LoadModule proxy_connect_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
> LoadModule proxy_ftp_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
> LoadModule proxy_balancer_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
>
> ProxyPass /test/customer http://IP:port/test/customer
> ProxyPassReverse test/customer http://IP:port/test/customer
>
> This is working fine, but when I try to configure the https url in the
> proxy it is not working.
>
> Could you please help me out with any web page or document which has those
> steps on how to configure ssl enabled url in the reverse proxy?
>
> Example I am trying the below which is not working
>
> SSLProxyEngine On
> ProxyPass /test/customer https://IP:port/test/customer
> ProxyPassReverse test/customer https://IP:port/test/customer
>
> Any inputs 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.
>
>
-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.