# UCP and Reverse Proxy under Apache

**URL:** <https://community.freepbx.org/t/ucp-and-reverse-proxy-under-apache/80731>\
**Category:** Configuration\
**Tags:** ucp\
**Created:** [January 20, 2022, 4:16pm UTC](https://community.freepbx.org/t/ucp-and-reverse-proxy-under-apache/80731 "2022-01-20T16:16:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Draecal](https://community.freepbx.org/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@Draecal](https://community.freepbx.org/u/Draecal)\
**Post date:** [January 20, 2022, 4:16pm UTC](https://community.freepbx.org/t/ucp-and-reverse-proxy-under-apache/80731/1 "2022-01-20T16:16:17Z")

</div>

Hi there!

**Situation:**

Running **freepbx** behind Reverse Proxy, Admin login working fine, but **UCP** only be able to see the login page, after clicking login got a **520 Error**

**Vhost File**

```auto
<VirtualHost *:80>
  ServerName myurl.com
 <Location />
  ProxyPass http://172.x.x.x/ retry=0
  ProxyPassReverse http://172.x.x.x/
</Location>
</VirtualHost>

```

In the admin panel there is no issue with internal links, all working smooth. I don’t know what happens with UCP

**Extra info:**

Found in console that the error shows after successfully call to **ajax.php** (Returns 200) then you get the 520.

---

<div class="post-metadata">

**Author:** ![system](https://community.freepbx.org/uploads/default/original/3X/f/7/f7056d57e04fdbf71c6ad967e1ced351317f5c3f.png) [@system](https://community.freepbx.org/u/system)\
**Post date:** [February 19, 2022, 4:16pm UTC](https://community.freepbx.org/t/ucp-and-reverse-proxy-under-apache/80731/2 "2022-02-19T16:16:53Z")

</div>

Closed on February 19, 2022, 4:16pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
