IIS 403 - Forbidden: Access is denied with sub app when Proxied

On my IIS I have a root site lets say mydomain.com and a sub directory that it is an IIS app.
If I am using “Proxied” in DNS I am able to access mydomain.com but when trying to access mydomain.com/mysubapp I am receiving the error: “403 - Forbidden: Access is denied : You do not have permission to view this directory or page using the credentials that you supplied.”
If I remove Proxied all is working without any errors.

Thanks in advanced for any help,

Welcome to the community!

May I ask if you are currently using some kind of IP address allowlist on your application? If that’s true, be aware that the app will only receive connections from Cloudflare’s IP addresses when enabling proxy mode.

You could use the CF-Connecting-IP header, which gives the user’s IP address instead of Cloudflare’s.

Hope it helps!

1 Like

I have created a sub domain and moved all files to it from the sub folder.
So now everything is working.


1 Like

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