smartstore / Smartstore

A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
http://www.smartstore.com/
GNU Affero General Public License v3.0
1.16k stars 427 forks source link

use Nginx for Reverse proxy ,When an error is encountered, the redirect address is not processed correctly #1044

Closed AtlantisDe closed 6 months ago

AtlantisDe commented 6 months ago

use Nginx for Reverse proxy

Config Like

// Reverse proxy
Shop URL:http://test.com/
HOST values:test.com

.net run

dotnet Smartstore.Web.dll --urls "http://localhost:1005"

Screenshots image

mgesing commented 6 months ago

Do you have ReverseProxy in appsettings.Development.json enabled? I have often used and tested this successfully with Ngrok.

AtlantisDe commented 6 months ago

@mgesing I have closed it now. I observed it and I forgot how to reproduce this situation.

    "ReverseProxy": {
      // "true" enables the ForwardedHeadersMiddleware.
      "Enabled": false,
AtlantisDe commented 6 months ago

This abnormal situation still occurs. @mgesing


https://www.test.com/admin/
Status Code:302 Found

Location:http://localhost/login/?returnUrl=%2Fadmin%2F

image