Possibility to change path base?

7 months ago
Needs to put the system on a domain but as a path.
For example:
``domain.com/shop``
Unfortunately nginx settings:
```
  location /shop {
    proxy_pass http://192.168.1.36:5000;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_cache off;
    proxy_http_version 1.1;
    proxy_buffering off;
    proxy_read_timeout 100s;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    }
```
Do not work because I still have a redirect to "no-found" or "install".
Is there any minimally invasive way (like config) to change pathbase?
7 months ago
I did:
_root.head.cshtml
<base href="~/shop" />

and:
        public virtual void ConfigureRequestPipeline(IApplicationBuilder application)
        {
            ServiceProvider = application.ApplicationServices;

            application.UsePathBase("/shop");
...
        }

I think there should be a variable in appsettings.
If you agree with me then I can add one.
7 months ago
Can you check this  nginx config
https://www.nopcommerce.com/en/boards/topic/92807/proper-nginx-configuration-with-ssl#291318

//Rashed
7 months ago
This only works if we want to have a subdomain. I want to have one domain in the path.
domain.com - another system on the home page
domain.com/shop - nopcommerce
7 months ago
I did it and shared it with you

My PR:
https://github.com/nopSolutions/nopCommerce/pull/6852