I'm interested in serving multiple .Net sites using Nginx for the front end proxying to fastcgi-server. I would like to know if its possible to support 2 sites on a single fastcgi-mono-server4 port (9000) or if the accepted practice to is to create a port for each site? When specifying a webapp file there seems to be nowhere to specify whether to use 9000 or 9001 so I'm confused unless you can specify a pool of fastcgi processes. I found when attempting 2 sites on Port 9000 using a webapp configuration file with 2 hosts... the same site was served on both urls.
Thanks
Yes. The fastcgi-mono-server4(mono 3.12.1) can take more than one webapp in single proc.
It seems that the fastcgi-mono-server only use the vhost+vport+vpath to match the webapp node defined in .webapp file.
my_nginx.conf
it contains 2 webapp nodes
I just tested use the vport to distinct them, and succeed. I think using vhost or vpath or any combination of vhost+vport+vpath should worked.
listening in 9000 port.