Thread overview
vibe.d & nginx
Mar 28, 2018
bauss
Mar 28, 2018
bauss
Mar 28, 2018
Adam D. Ruppe
Mar 28, 2018
bauss
March 28, 2018
I know how to setup nginx to a single vibe.d application, but what if I host multiple vibe.d applications on the same host.

How can I forward them using nginx correctly?

Can I just create multiple server sections in the config, even on the same port? Or is there something I have to be aware of?
March 28, 2018
On Wednesday, 28 March 2018 at 19:42:24 UTC, bauss wrote:
> I know how to setup nginx to a single vibe.d application, but what if I host multiple vibe.d applications on the same host.
>
> How can I forward them using nginx correctly?
>
> Can I just create multiple server sections in the config, even on the same port? Or is there something I have to be aware of?

Figured it out.
March 28, 2018
On Wednesday, 28 March 2018 at 19:42:24 UTC, bauss wrote:
> Can I just create multiple server sections in the config, even on the same port? Or is there something I have to be aware of?

Multiple nginx configs can live on the same external port, though they will need to be running on different internal ports (so the vibe thing runs on like port 9000 then 9001 then 9002 etc, while the nginx things all run on port 80 and can use the server name or locations to disambiguate)
March 28, 2018
On Wednesday, 28 March 2018 at 20:34:52 UTC, Adam D. Ruppe wrote:
> On Wednesday, 28 March 2018 at 19:42:24 UTC, bauss wrote:
>> Can I just create multiple server sections in the config, even on the same port? Or is there something I have to be aware of?
>
> Multiple nginx configs can live on the same external port, though they will need to be running on different internal ports (so the vibe thing runs on like port 9000 then 9001 then 9002 etc, while the nginx things all run on port 80 and can use the server name or locations to disambiguate)

Yeah I got it working and figured it out.

Thank you though