2
votes

I set up a Basic Asp.Net Core Website on my CentOS 7 Server. If i run it with localhost:5001 everything works fine and the site opens.

If i Go Over my Domain in Plesk i get a ERR_CONNECTION_REFUSED HTPP 307.

Here a Screenshot

I Set up The Apache Reverse Proxy for The Domain in Plesk under The Apache and Nginx Settings Page like this:

ProxyPreserveHost On ProxyPass / http://127.0.0.1:5000/ ProxyPassReverse / http://127.0.0.1:5000/

I think something is wrong with The redirect , because on localhost it works fine.

Can someone help me please?

1
In the Startup.cs i deleted app.UseHttpsRedirection(); and now it works fine :D. - user3219534
Post your finding as an answer and accept it. - Lex Li

1 Answers

1
votes

In the Startup.cs i deleted app.UseHttpsRedirection(); and now it works fine