# Reverse proxy with url rewrites

**URL:** <https://forum.pydio.com/t/reverse-proxy-with-url-rewrites/5667>\
**Category:** Pydio Cells\
**Created:** [December 29, 2023, 10:40pm UTC](https://forum.pydio.com/t/reverse-proxy-with-url-rewrites/5667 "2023-12-29T22:40:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smaudet](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@smaudet](https://forum.pydio.com/u/smaudet)\
**Post date:** [December 29, 2023, 10:40pm UTC](https://forum.pydio.com/t/reverse-proxy-with-url-rewrites/5667/1 "2023-12-29T22:40:05Z")

</div>

Hi, using pydio cells 4.3.2.

Seemed to work great after initial setup (although cells configure site tries to get me to re-install?), I can’t get url re-write + reverse proxy working though.

### Describe your issue in detail

I have a https :// domain dot com : 8083 on which cells is running fine, and I have a https :// domain dot com managed by an nginx instance. I have a location block which is proxy passing to the cells instance at https :// [domain.com](http://domain.com) /files/, and even a re-write rule.

(apologies about the urls, forum url rules)

It does hit the cells endpoint, however the page (and hence browser) appears to try to use the base domain, not the proxied url. Is there a header or something I can set to make pydio cells base off a rewritten url?

### What version of Cells are you using?

### What is the server OS? Database name/version? Browser name or mobile device description (if issue appears client-side)?

Firefox + linux server, mariadb (10.5?)

### What steps have you taken to resolve this issue already?

Tried following reverse proxy instructions in the docs.

I have:

```auto
location /files/ {
            # rewrite /files/(.*) /$1 break;
            proxy_redirect off;
            proxy_set_header Host $host;

            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header X-Forwarded-Port $server_port;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Nginx-Proxy true;
            proxy_pass https://domain dot com:8083;
            proxy_ssl_server_name on;
        }

```

This half works but the page redirects after login, or gives me errors about logging in.

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [January 2, 2024, 1:27pm UTC](https://forum.pydio.com/t/reverse-proxy-with-url-rewrites/5667/2 "2024-01-02T13:27:54Z")

</div>

Hello @smaudet

Happy new year

Cells does not support /uri. It should work at the **root /** of the url.  
You can use a **sub-domain** as a solution

---

<div class="post-metadata">

**Author:** ![smaudet](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@smaudet](https://forum.pydio.com/u/smaudet)\
**Post date:** [January 5, 2024, 2:17am UTC](https://forum.pydio.com/t/reverse-proxy-with-url-rewrites/5667/3 "2024-01-05T02:17:28Z")

</div>

@c12simple Thanks!

Yeah, that’s disappointing. Urls are just a bit more flexible and don’t require as much setup as a subdomain (think dns servers, ssl certificates, etc).

Stellar product, otherwise. Pydio fullfilled my (temporary) needs, but I might search to see what other solutions are capable of.

Is there any way to submit a feature request? Github mentions the forums for those. I think this would qualify as one.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/61f19fa52ec15fd4250db51aea351adba0e831fd.png) [@system](https://forum.pydio.com/u/system)\
**Post date:** [March 5, 2024, 2:17am UTC](https://forum.pydio.com/t/reverse-proxy-with-url-rewrites/5667/4 "2024-03-05T02:17:29Z")

</div>

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