DX Infrastructure Manager

 ngnix

Solomon Melamed's profile image
Solomon Melamed posted 09-22-2021 12:41 PM
Hello All,

Is it possible to install NGINX that will do reverse proxy for OC?

Many thanks
Nico Mueller's profile image
Nico Mueller
Hi Salomon,

were using our UMP/OC behind a apache2 reverse proxy, so I expect nginx to work aswell.
Make sure to configure HTTPS in OC, not only on the visible reverse proxy.
Otherwise there will be errors on some functions of OC.

Best Regards
Nico
Solomon Melamed's profile image
Solomon Melamed
A strange affair. I configured NGINX to reverse proxy I get the first page of OC with the user and password but after entering user and password page thinks number of seconds and returns and user and password page.
Andrew Cooper's profile image
Andrew Cooper
Is the nginx reverse proxy talking http or https to the OC. As Nico pointed out if the browser is using https to the proxy then the proxy needs to do https to the OC server (as CABI especially ) does not support SSL offload (certainly this is the case for the 20.3.x versions).


If you access the OC directly I assume it works

Regards, Andrew
Solomon Melamed's profile image
Solomon Melamed
As I remember the reverse proxy talks to the OC using the AJP protocol, the problem is that it is a protocol of APACHE and NGINX does not recognize it.
Solomon Melamed's profile image
Solomon Melamed
I finally installed APACHE and it works for me, the problem now with CAPI's port 8443, I cannot configure it port (8443) in APACHE as reverse proxy.
Guillaume Briere's profile image
Guillaume Briere
Hello,
A strange affair. I configured NGINX to reverse proxy I get the first page of OC with the user and password but after entering user and password page thinks number of seconds and returns and user and password page.

Old thread but I had the same issue and I found a fix. If you look at the developer tools when you login, you will see that after logging in the "config?reload=true" element returned a 502.

Reason is the proxy buffer is smaller compare to what you received from the upstream client. You need to configure a bigger buffer under your location:
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;

Thanks