Hi, @Nishkarshk , as Greg said, you could take advantage of a reverse proxy like nginx, basically, you would have your nginx running on port 80, and let’s say having two domains (www.english.com and www.hindi.com) pointing to the same ip (and port), once the request reaches the nginx proxy, it would redirect them based on the domain used for that request.
Assuming you are running it on ubuntu you could do something like this
Install nginx
sudo apt-get install nginx
Got to available sites dir
cd /etc/nginx/sites-available
create your desired sites
sudo touch rasa_english
sudo touch rasa_hindi
Now edit each of the recently created english site like below:
sudo nano rasa_english
listen 80;
server_name english-domain.com www.english-domain.com;
location / {
proxy_pass http://localhost:5005;
}
}
Now do the same for your hindi site like below:
sudo nano rasa_hindi
listen 80;
server_name english-hindi.com www.english-hindi.com;
location / {
proxy_pass http://localhost:5007;
}
}
Now you need to symlink your configuration to sites-enabled for it to be used by Nginx, since it’s currently in sites-available
symlink your configuration to sites-enabled
sudo ln -s /etc/nginx/sites-available/rasa_english /etc/nginx/sites-enabled/rasa_english
sudo ln -s /etc/nginx/sites-available/rasa_hindi /etc/nginx/sites-enabled/rasa_hindi
Then you just need to restart the nginx to apply the changes
sudo systemctl restart nginx
You now have two different domains pointing to the same ip but reaching different bots.
Hope it helps