# Problem with deploying Rasa chatbot on production

**URL:** <https://forum.rasa.com/t/problem-with-deploying-rasa-chatbot-on-production/14314>\
**Category:** Getting Started with Rasa\
**Created:** [August 14, 2019, 5:47am UTC](https://forum.rasa.com/t/problem-with-deploying-rasa-chatbot-on-production/14314 "2019-08-14T05:47:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deadlyhallows](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@deadlyhallows](https://forum.rasa.com/u/deadlyhallows)\
**Post date:** [August 14, 2019, 5:47am UTC](https://forum.rasa.com/t/problem-with-deploying-rasa-chatbot-on-production/14314/1 "2019-08-14T05:47:06Z")

</div>

Hey everyone, Needed some help. I created a rasa chatbot and deployed it on server with nginx and ubuntu 18.4, but when I hit the url  
**https://\<my\_domain\_name\>/slacky/** , nginx gives 404 error i.e it is unable to listen rasa chatbot running on 0.0.0.0:5055.

**endpoints.yml**

```
  action_endpoint:
       url: "http://localhost:5055/webhook"

```

**nginx/sites-enables/default/**

```
server {
      server_name app.phrazor.com;
      root /home/ubuntu/index_page;
      index index.html;
      location = /favicon.ico { access_log off; log_not_found off; }
      location = / {
          root /home/ubuntu/index_page;
          index login.html;
      }
     # location /accenture_static/ {
      # root /home/ubuntu/accenture_dashboard;
      #}
      location /slacky/ {
          include proxy_params;
          proxy_pass http://0.0.0.0:5055/;
  
      }

```

thanks in advance.

---

<div class="post-metadata">

**Author:** ![fede](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fede/32/7095_2.png) [@fede](https://forum.rasa.com/u/fede)\
**Post date:** [August 14, 2019, 1:57pm UTC](https://forum.rasa.com/t/problem-with-deploying-rasa-chatbot-on-production/14314/2 "2019-08-14T13:57:05Z")

</div>

Hi @deadlyhallows, could you try changing `proxy_pass http://0.0.0.0:5055/;` with `proxy_pass http://localhost:5055/;`?

---

<div class="post-metadata">

**Author:** ![deadlyhallows](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@deadlyhallows](https://forum.rasa.com/u/deadlyhallows)\
**Post date:** [August 16, 2019, 5:04am UTC](https://forum.rasa.com/t/problem-with-deploying-rasa-chatbot-on-production/14314/3 "2019-08-16T05:04:46Z")

</div>

should the proxy pass be listening to the action server or the shell of rasa chatbot?

---

<div class="post-metadata">

**Author:** ![deadlyhallows](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@deadlyhallows](https://forum.rasa.com/u/deadlyhallows)\
**Post date:** [August 16, 2019, 5:22am UTC](https://forum.rasa.com/t/problem-with-deploying-rasa-chatbot-on-production/14314/4 "2019-08-16T05:22:56Z")

</div>

I tried your suggestion but its giving me 502 nginx bad gateway error

---

<div class="post-metadata">

**Author:** ![fede](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fede/32/7095_2.png) [@fede](https://forum.rasa.com/u/fede)\
**Post date:** [August 16, 2019, 8:46am UTC](https://forum.rasa.com/t/problem-with-deploying-rasa-chatbot-on-production/14314/5 "2019-08-16T08:46:49Z")

</div>

My mistake, nginx should be forwarding your request to your Rasa server, not the action server. Make sure you run your bot using `rasa run`. The address + port will then be printed on your console, by default it’s `http://localhost:5005`.
