Umbraco 8 on localhost: /umbraco/ redirects to https://localhost/umbraco/ (removes port number and adds https)
Hi forum,
I have taken over a new customers website and I am trying to establish a local dev environment. Frontend runs fine, but when I try to enter backend (http://localhost:23060/umbraco/) it redirects to https://localhost/umbraco/ (i.e. a redirect removes port number and adds https) and then I get:
This site can’t be reachedlocalhost refused to connect. Try:
Checking the connection
Checking the proxy and the firewall
ERRCONNECTIONREFUSED
I am using IIS Express.
I have tried all variations of the below and then flushed DNS (chrome://net-internals/#dns), but nothing helps.
Problem is not that big anymore, since when running ISS Express from Visial Studio 2019 the Umbraco backend runs fine. The problem is only occuring when running ISS Express from VS Code.
So I have a solution - but I would be nice to know the reason for the problem in VS Code. :)
Umbraco 8 on localhost: /umbraco/ redirects to https://localhost/umbraco/ (removes port number and adds https)
Hi forum,
I have taken over a new customers website and I am trying to establish a local dev environment. Frontend runs fine, but when I try to enter backend (http://localhost:23060/umbraco/) it redirects to https://localhost/umbraco/ (i.e. a redirect removes port number and adds https) and then I get:
I am using IIS Express.
I have tried all variations of the below and then flushed DNS (chrome://net-internals/#dns), but nothing helps.
Uncommented parts or all of this:
Added umbracoUseSSL = false
UPDATE!
Problem is not that big anymore, since when running ISS Express from Visial Studio 2019 the Umbraco backend runs fine. The problem is only occuring when running ISS Express from VS Code.
So I have a solution - but I would be nice to know the reason for the problem in VS Code. :)
Hi,
Some thoughts to assist troubleshooting:
1) Is there any IIS .config file being used where rewrites are occurring outside of the web.config?
2) Is there a different IIS configuration being used on your localhost which VS 2019 is using and VS code is not?
3) Have you checked the IIS rewrite rules in your IIS configuration. Perhaps there is something in there causing rewrites?
Haven´t checked, but my other sites work with VS Code and IIS Express, so I guess that's not the reason.
For now I just go with Visual Studio. :)
is working on a reply...