# Confused Reverse proxy and vaultwarden

**URL:** https://dietpi.com/forum/t/confused-reverse-proxy-and-vaultwarden/5762
**Category:** General Discussion
**Created:** [24 September 2021 11:53 UTC](https://dietpi.com/forum/t/confused-reverse-proxy-and-vaultwarden/5762 "2021-09-24T11:53:36Z")
**Posts on this page:** 1
**Showing post:** 32

<div class="post-metadata">

### Author: ![amibumpin](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@amibumpin](https://dietpi.com/forum/u/amibumpin)
#### Post date: [15 December 2021 11:01 UTC](https://dietpi.com/forum/t/confused-reverse-proxy-and-vaultwarden/5762/32 "2021-12-15T11:01:00Z")

</div>

> [@](#):
>
> if you setup a revers proxy, why are you trying to access it via port number? myddns:8001 ?? How did you setup the revers proxy?

Because I don’t know what I am doing… 😢

This is my config:

```plaintext
$HTTP["host"] == "my.ddns.net" {
    $HTTP["url"] == "/notifications/hub" {
       # WebSocket proxy
       proxy.server = ( "" => ("vaultwarden" => ( "host" => "192.168.1.3", "port" => 3012 )))
       proxy.forwarded = ( "for" => 1 )
       proxy.header = (
           "https-remap" => "enable",
           "upgrade" => "enable",
           "connect" => "enable"
       )
    } else {
       proxy.server = ( "" => ("vaultwarden" => ( "host" => "192.168.1.3", "port" => 8001 )))
       proxy.forwarded = ( "for" => 1 )
       proxy.header = ( "https-remap" => "enable" )
    }
}

```

I had to say that I have in my router redirected port 443-\> to another port where it is home assistant, I say it if it matters…  
So if I go to [my.ddns.net](http://my.ddns.net) it went to home assistant login page, now it doesn’t I imagine because of the reverse proxy rule.

---

_[View the full topic](https://dietpi.com/forum/t/confused-reverse-proxy-and-vaultwarden/5762)._
