Devolutions Server and Reverse Proxy

Devolutions Server and Reverse Proxy

avatar

I set up a Devolutions Server Instance and got it all running in IIS as a web application at sql.domain.local/dps. I am able to access DPS at this address.

However, I've been trying to convert our internal URLs into simpler aliases to allow me to keep permanent URLs as I update/migrate between hosting servers. I want to add an alias to the DPS instance at pass.psi.internal using a reverse proxy as I've done with other IIS sites. If I add a simple redirect rule, the web application appears to stall:

image-5.png


Here's my URL rewrite rule.

image-4.png


Debugging in the web console seems to indicate that an additional 'dps/' is being appended to the URL in a backend request, so resources are not being found. E.g. a resource is normally located at:

https://sql.domain.local/dps/assets/translations/prod/en_US.json

However, for the alias, I see

https://pass.psi.internal/dps/assets/translations/prod/en_US.json

which resolves to

https://sql.domain.local/dps/dps/assets/translations/prod/en_US.json

(note the .../dps/dps/...)

My attempts to resolve this aren't working (I'm not a web developer). The only thing I sort of got working was an additional redirect rule to catch the internal duplicate:

image-8.png


With this, the page loads, but I get an error "Error during OAuth server initialization. Please contact your administrator." and "There is a problem with the validation of the oauth discovery document. Please check your configuration (ex: AccessUri)"


image-2.png


image-3.png


Here's what my IIS Access URIs look like. Note that I cannot remove the trailing '/' after the alias; it's added automatically, despite the documentation: https://redirection.devolutions.com/dvls-access-uri


image.png



What am I doing wrong? Is there any official guidance on this?


Versions:

Devolutions Server Console: 2026.3.14.0

Devolutions Server Instance: 2026.2.25.0

All Comments (1)

avatar

Hi,


Thanks for the detailed write-up and the screenshots — that makes this easy to diagnose. The good news is you're not doing anything "wrong" as a web developer; you've hit a specific constraint in how DVLS is built, and both symptoms come from the same root cause.


The core issue is that your reverse proxy is changing the path (/dps to root), not just the hostname. DVLS is an Angular single-page app, and the page it serves sets its base href to /dps/ because the instance is installed under the /dps sub-application. Every asset and API call the app makes is resolved relative to that base. So when you expose it at the root of pass.psi.internal, the browser asks for the asset under pass.psi.internal/dps/..., your proxy prepends /dps/ again, and you get the /dps/dps/... duplication. The base path is effectively baked into the app at install time.


The OAuth error is the same problem wearing a different hat. DVLS builds its OAuth discovery document (the issuer and endpoint URLs) from the configured Access URI, and the app validates those URLs against the address it's actually loaded from. Because your alias Access URI points at the root (pass.psi.internal/) while the app really lives under /dps — plus that trailing slash — the advertised endpoints don't line up with the origin, and discovery validation fails. Your second "duplicate-catcher" rewrite rule is really a workaround for the path mismatch, and it's part of what keeps OAuth misaligned, so I'd take it back out.


The cleanest supported fix is to keep the /dps path consistent end to end, and let the alias be pass.psi.internal/dps:

  1. Set your reverse proxy to forward pass.psi.internal/dps/* straight to sql.domain.local/dps/* with no path rewriting (1:1). The base path now matches on both hosts, so the /dps/dps/ problem disappears.

  2. Remove the second rewrite rule you added to catch the duplicate.

  3. In the Devolutions Server Console, go to Server – Edit – IIS and use the ellipsis (…) to add pass.psi.internal/dps as an additional Access URI (with the https scheme). Keep your existing sql.domain.local/dps entry as well — multiple Access URIs are supported. Enter it with no trailing slash and the exact casing, and make sure the pass.psi.internal certificate is valid on whichever leg the browser reaches.

  4. Confirm the proxy preserves the Host header (or forwards the X-Forwarded-Host and X-Forwarded-Proto headers), and that X-Forwarded-Proto is https if TLS terminates at the proxy. Otherwise DVLS rebuilds the URLs from the backend hostname and you're back to the mismatch.

  5. Restart the instance from the Console (Stop server, then Start server) — Access URI changes only take effect after a restart.


That keeps a permanent, migration-proof URL, which is your real goal; the only concession is that /dps stays in the address. If you genuinely want a path-less pass.psi.internal with nothing after it, the supported way is to host the instance at the root of a dedicated IIS site bound to that hostname and set the Access URI to just the hostname (the "Root installation" scenario in the docs). With the app at the root there's no path to rewrite at all.


On the trailing slash you mentioned: DVLS requires the Access URI to have no slash at the end and to include the application name when it isn't at the root, so the value you want is pass.psi.internal/dps exactly (with the https scheme). If it still forces a slash after you enter it that way, let me know the exact string you typed and I'll dig in.


Two quick things that would help me confirm:

  • Is your proxy rule a true reverse proxy (ARR pass-through), or a redirect rule? Your first screenshot mentioned a redirect, and a 301/302 redirect behaves very differently from a reverse proxy here.

  • Is pass.psi.internal/dps acceptable as the permanent alias, or do you specifically need the URL with no path at all? That decides which of the two routes above fits.


Access URI format reference: https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/access-uri-format


Best,