# Running multiple chatbots on same server and hiding ports

**URL:** <https://forum.rasa.com/t/running-multiple-chatbots-on-same-server-and-hiding-ports/25750>\
**Category:** Rasa Open Source\
**Created:** [March 6, 2020, 1:07pm UTC](https://forum.rasa.com/t/running-multiple-chatbots-on-same-server-and-hiding-ports/25750 "2020-03-06T13:07:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![saurabh-m523](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saurabh-m523/32/7887_2.png) [@saurabh-m523](https://forum.rasa.com/u/saurabh-m523)\
**Post date:** [March 9, 2020, 11:56am UTC](https://forum.rasa.com/t/running-multiple-chatbots-on-same-server-and-hiding-ports/25750/4 "2020-03-09T11:56:30Z")

</div>

I suggest you read more about [`nginx`](https://nginx.org/en/docs/beginners_guide.html).

You’ll need a config file for `nginx`, you can use something similar to the following:

```
server {
	listen 443 default_server;
	server_name mydomain.com;
	ssl on;
	ssl_certificate /path/to/certificate;
	ssl_certificate_key /path/to/certificate/key;
	ssl_session_cache shared:SSL:10m;

	location /chatbot1/ {
		proxy_pass http://localhost:5001/;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;                                                      
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
	}

	location /chatbot2/ {
		proxy_pass http://localhost:5002/;
		proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
	}

}

server {
	listen 80 default_server;
	server_name mydomain.com;
	return 301 https://$host$request_uri;
}

```

Note: I see that you want to use the `socketio` channel, hence the config of `nginx` above has been modified to upgrade the `http` connections to `websocket` connection.

---

_[View the full topic](https://forum.rasa.com/t/running-multiple-chatbots-on-same-server-and-hiding-ports/25750)._
