www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - vibe.d & nginx

reply bauss <jj_1337 live.dk> writes:
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?
Mar 28 2018
next sibling parent bauss <jj_1337 live.dk> writes:
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.
Mar 28 2018
prev sibling parent reply Adam D. Ruppe <destructionator gmail.com> writes:
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)
Mar 28 2018
parent bauss <jj_1337 live.dk> writes:
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
Mar 28 2018