Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Deploy to IIS under virtual folder #3410


User avatar
0
marble68 created

Hi -

I'm on AspNetZero Core + Angular (v 3)

I'm trying to get my app to work on IIS, but instead of it running at <a class="postlink" href="http://myapp.example.com">http://myapp.example.com</a>, I'm trying to run it at <a class="postlink" href="http://example.com/myapp/">http://example.com/myapp/</a>

Is this possible? I'm thinking not because I see a lot of URLs leading with / (such as /assets/appconfig.json).

If this isn't, then I'll use host headers. If it IS possible, how might I configure it to work this way? Thanks in advance

I have IIS setup, and my angular app is trying to connect.

In the core side, I'm setting my app settings as such:

"App": {
    "ServerRootAddress": "http://example.com/myappapi/",
    "ClientRootAddress": "http://example.com/myapp/",
    "CorsOrigins": "http://example.com/myappapi/,http://example.com/myapp/"
  },

on the angular UI appconfigure.json is:

{
  "remoteServiceBaseUrl": "http://example.com/myappapi/",
  "appBaseUrl": "http://example.com/myapp/"
}

1 Answer(s)