Home > Net >  The.net core 3.1 virtual directory
The.net core 3.1 virtual directory

Time:12-03

Will be more than the.net core MVC project deployment in a Windows service,
How to use a port,
Different virtual paths,
Instead of a port, a project
As the iis default is 8080, but different projects can use the name to distinguish between different applications

CodePudding user response:

Take the project to a different path, nginx, for example,

The location/
{
Proxy_pass http://localhost:8081;
}

The location/app2
{
Proxy_pass http://localhost:8082;
}

CodePudding user response:

reference 1/X - I - n reply:
the project to a different path, nginx example

The location/
{
Proxy_pass http://localhost:8081;
}

The location/app2
{
Proxy_pass http://localhost:8082;
}
I want to avoid is can't use multiple ports, like ISS a 8080 OK, all other projects can use the application

CodePudding user response:

A port can only by an application, decide the:
Different applications can use different ports, determines the:
External use reverse proxy to use the same port of unified release,

Applied to different ports, released by the same reverse proxy unified to a site (the same port) on different paths, this is a standard practice,

CodePudding user response:

 server {
Server_name abc.com;
Listen 443 SSL;
.
The location/
{
Proxy_pass http://localhost:8081;
}

The location/app2
{
Proxy_pass http://localhost:8082;
}
}
  • Related