# Blazor server running on http behind NGINX reverse proxy

**URL:** <https://forum.radzen.com/t/blazor-server-running-on-http-behind-nginx-reverse-proxy/19333>\
**Category:** Blazor Server\
**Created:** [December 17, 2024, 4:59pm UTC](https://forum.radzen.com/t/blazor-server-running-on-http-behind-nginx-reverse-proxy/19333 "2024-12-17T16:59:23Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [December 20, 2024, 9:04am UTC](https://forum.radzen.com/t/blazor-server-running-on-http-behind-nginx-reverse-proxy/19333/12 "2024-12-20T09:04:13Z")

</div>

Let's stick with the forwarding middleware. What is the value rendered for `<base href="@NavigationManager.BaseUri" />` that you see when browsing with `https://example.com`? Does it have https or http? If it is still http then the middleware isn't working properly for some reason.

Did you try adding some form of logging? Adding `Console.WriteLine` in SecurityService and AccountController would show what code is executed.

In any case here is my test application running on our Ubuntu server: [https://next.radzen.com](https://next.radzen.com)

You can login with `test@example.com` / `Te$tpa$$1`

Here is the source.[EmptyApp.zip](https://forum.radzen.com/uploads/short-url/10tBRXNXiTUlDZKVPDWxH9fj9Bf.zip) (254.7 KB)

> [@sentient](#):
>
> The inner exception says incorrect certificate, makes sense, the certificate is for "example.c0m".

Is your certificate self-signed? This won't work for sure and you would have to [disable certificate validation](https://forum.radzen.com/t/login-page-redirects-to-login-page-again/14481/6).

---

_[View the full topic](https://forum.radzen.com/t/blazor-server-running-on-http-behind-nginx-reverse-proxy/19333)._
