# Reverse proxy

**URL:** <https://forum.rasa.com/t/reverse-proxy/22445>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [December 13, 2019, 4:36pm UTC](https://forum.rasa.com/t/reverse-proxy/22445 "2019-12-13T16:36:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuckyHal](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@LuckyHal](https://forum.rasa.com/u/LuckyHal)\
**Post date:** [December 13, 2019, 4:36pm UTC](https://forum.rasa.com/t/reverse-proxy/22445/1 "2019-12-13T16:36:22Z")

</div>

Hello, I’am stuck since a week on a reverse proxy problem with rasa x :

- GOAL :  
I must provide an environement where multiple instance of rasa bot and rasa X can be accesed by internet.  

- ENV :  
[https://mywebsite/skill](https://mywebsite/skill) -\> NGINX -\> RASA X -\> RASA BOT I must use NGINX RASA X and Bot are launched on ubuntu 19.04 box with anaconda 3 in a conda virtual env with python 3.7 rasa versions :  
rasa==1.5.1  
rasa-sdk==1.5.1  
rasa-x==0.23.2  

- 
  - NGINX CONF :  
location /skill {  
proxy\_pass http://rasa\_x\_host:10000/;  
access\_log /var/log/nginx/proxy\_skills-access.log;  
}  

- 
  - endpoint.yml :  
action\_endpoint:   
url: “[http://localhost:10055/webhook](http://localhost:10055/webhook)”   

- 
  - Launch commands :   
rasa run actions -p 10055 &   
rasa x --rasa-x-port 10000 -p 10001 --cors “\*” --enable-api &   

- PROBLEM When accesing to [https://mywebsite/skill](https://mywebsite/skill), the login page doesn’t show up… the webbrowser console show that the page try to use [https://mywebsite/static](https://mywebsite/static) So for testing purpose i have append temporary to route in NGINX :  
location /login {  
proxy\_pass http://rasa\_x\_host:10000/login;  
access\_log /var/log/nginx/proxy\_skills-access.log;  
}  
location /static {  
proxy\_pass http://rasa\_x\_host:10000/static;  
access\_log /var/log/nginx/proxy\_skills-access.log;  
}  
=\> The login page show up but the browser URL bar chage from [https://mywebsite/skill](https://mywebsite/skill) to [https://mywebsite/login](https://mywebsite/login)   

- BEHAVIOR EXPECTED :  
[https://mywebsite/skill/login](https://mywebsite/skill/login)  
 **/!\ I can’t continue using /login /static etc… because i will have more than one rasa x and i have others applications wich are accesible by this NGINX and theses routes cause some to crash   
PS DOCKER SOLUTIONS ARE NOT POSSIBLE DUE TO OTHER INFRA CONSTRAINTS**

I have tried a lot of thing in NGINX and in rasa x as well but nothing work, i have write a reverse proxy in nodejs and the behavior is the same so the only possibility is to be able to launch rasa x with a base URL (like all other web server) :  
ACTUAL  
Starting Rasa X in local mode…   
The server is running at [http://localhost:10000/login?username=me&password=ZWZhwVcrF22U](http://localhost:10000/login?username=me&password=ZWZhwVcrF22U)  
EXPECTED  
Starting Rasa X in local mode…   
The server is running at [http://localhost:10000/BASE\_URL/login?username=me&password=ZWZhwVcrF22U](http://localhost:10000/BASE_URL/login?username=me&password=ZWZhwVcrF22U)

If i can achieve this my reverse proxy must be OK…

QUESTIONS :  
Is the a way to launch rasa x with a BASE\_URL ?  
If not is there a way (header/option/etc…) in NGINX or in rasa for achieve my goal ?

Best regards

---

<div class="post-metadata">

**Author:** ![plattenschieber](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/plattenschieber/32/410_2.png) [@plattenschieber](https://forum.rasa.com/u/plattenschieber)\
**Post date:** [August 4, 2020, 7:14pm UTC](https://forum.rasa.com/t/reverse-proxy/22445/2 "2020-08-04T19:14:05Z")

</div>

Any news on this topic? Is there an environment variable for the base url?

---

<div class="post-metadata">

**Author:** ![vigneshp826](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vigneshp826/32/657_2.png) [@vigneshp826](https://forum.rasa.com/u/vigneshp826)\
**Post date:** [September 16, 2020, 6:01pm UTC](https://forum.rasa.com/t/reverse-proxy/22445/3 "2020-09-16T18:01:15Z")

</div>

Any suggestion on this? @Tobias_Wochinger
