Kestrel cannot serve 2 sites at the same time ?
I use Nginx with Kestrel and I am trying to serve 2 sites at the same machine at the same time. first site uses port 80 => example.com:80 second site uses port 8080 => example.com:8080 I can serve both sites one by one with success.
But while first site is running on Kestrel, if I start an other Kestrel for the second site, The kestrel is terminated on the first site.
Here is my Nginx config files:
server { listen 80; server_name 192.168.1.71;
location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Connection keep-alive; proxy_pass http://127.0.0.1:5000; } }
server { listen 8080; server_name 192.168.1.71-beta;
location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Connection keep-alive; proxy_pass http://127.0.0.1:5050; } }
Any ideas ?
My bad.. Such a mistake.. I check the PID of the Kestrel and terminate it from bash script!!! It is working.