NGINX wrapper for Omnis CGI
Hi,
It is not compulsory to have the cgi exe nor the apache module to talk to Omnis through a webserver, A simple proxy is
enough with Apache or any webserver (nginx, node, etc…)
#apache proxy syntax for regular Omnis on the same host listening to port 5981
# try me with myserver/omnis?OmnisLibrary=lib&OmnisClass=rtask
ProxyPass 127.0.0.1:5981
ProxyPassReverse 127.0.0.1:5981
#apache proxy syntax for restful Omnis on the same host listening to port 5981
# try me with myserver/omnisrest/lib/rtask/mymethod
ProxyPass 127.0.0.1:5981/api
ProxyPassReverse 127.0.0.1:5981/api
As the matter of fact, the Omnis cgi or module are empty shells that passes the http environment to Omnis. The only
thing that’s in there and not in Omnis, is some error messages that deal with “Omnis is not there” and stuff like that,
and are a little bit mode informative than the proxy ones (which will probably always return http 503 for every problem.
Regards
Bruno
By Design
www.bydesign.fr
Bruno Del Sol
bruno.delsol@bydesign.fr
tel (33) 01 48 78 47 37
46, rue de La Tour d’Auvergne
75009 Paris (France)
Le 16/03/2018 à 21:14, Clifford Ilkay a écrit :
> On Fri, Mar 16, 2018 at 5:37 AM, Nick Renders <omnis1@arcict.com> wrote:
>
>> Hi List,
>>
>> We are migrating our Web Server from Apache to NGINX.
>>
>> I read up a bit on the list, and if I understand this correctly,
>> it is possible to write a FastCGI wrapper so that the Omnis GGI
>> can be called. Has anyone tried this option?
>
> It should be feasible. However, you might be better off using the Omnis
> Apache module and Apache with nginx proxying to Apache. It’s not an unusual
> configuration at all. Configure Apache to only listen to localhost:8080 (or
> whatever port you have available) and proxy any requests to nginx on port
> 80 or 443 to Apache localhost:8080. You could put whatever assets that
> Omnis doesn’t have to serve, like CSS, any static HTML pages, images, and
> JavaScript, from nginx and forward everything else to the Omnis handler on
> Apache.
>
> Regards,
>
> Clifford Ilkay
>
> +1 647-778-8696
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com
>
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com