#1 2018-04-25 05:55:04

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Mormot Production Mode

Hello all together,

once more i need your help.

We have the following situation:

We developed our Mormot Server on a single machine (localhost) as a Rest Server which serve JSON Content via Interface and Method based Services.

All work fine. We developed an angular application as frontend as well.

Now we want to host the Mormot Server on our Production Server. This is a virtual Server which is hosted in a Cloud.

This Server got IIS installed and got multiple Sites configured on the port 80 and 443 (for ssl).

Now i want to deploy the mormot server aside the IIS. He shall listen on a different Port. I Can register a Server and i can see that an URL become registered.

We add port filter rules to the firewall so the Messages get forwarded to our Server. But we cant reach the Mormot Server external nor via our web application.

Is it possible to have IIS and Mormot listen on different Ports on the same server ? Or do we have to use another Server for mormot ?

We wrap our head around this for now 3-4 days. But we cant get it to work.

Maybe one of you can help us out here.

If further Information are needed, just request them.

Thank you all for your time.

Offline

#2 2018-04-25 07:38:04

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: Mormot Production Mode

Its a bad idea to listen on non standard port. Better to listen on 80/443 but on different uri

Offline

#3 2018-04-25 07:50:27

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Mormot Production Mode

Under Windows, the mORMot server can listen on the very same port than IIS (80 or 443), if you register explicitly the URI of the server.
It is a standard way of using http.sys / IIS under Windows, called "namespace reservations".

See e.g. https://blogs.msdn.microsoft.com/drnick … ring-http/
or https://docs.microsoft.com/en-us/sql/re … erver-2017
or https://stackoverflow.com/a/11153294/458259

... or in the RTFM framework documentation https://synopse.info/files/html/Synopse … ml#TITL_88

Offline

#4 2018-04-25 11:02:41

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: Mormot Production Mode

Well, I think using IIS as a Reverse Proxy, via the Url Rewrite module, it's the most flexible and controllable way.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#5 2018-04-25 11:40:11

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Mormot Production Mode

Thank you all for your help.

All works fine now, i just couldn't see the forest for the trees.

Offline

#6 2018-04-25 18:42:12

Junior/RO
Member
Registered: 2011-05-13
Posts: 210

Re: Mormot Production Mode

I have used reverse proxy with Apache and mORMot, worked well.

Offline

Board footer

Powered by FluxBB