問題タブ [subapplication]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
84 参照

asp.net-mvc - IIS サブアプリケーション ルート

ASP.NET MVC アプリケーションである IIS でホストされている既存の Web アプリケーションがあります。サブアプリケーションを追加したいのですが、デプロイすると、「~/」や「/」などの相対パスが親アプリケーションにインポートされます。

例: 親アプリケーションの URL はhttps://www.example.com/です。

次に、私のサブアプリケーションはhttps://www.example.com/subApp/です

「subApp/test」ページをクリックしようとすると、 https://www.example.com/subApp/test にリダイレクトされるはずです、それでもhttps://www.example.com/testに戻ります.

どうすれば解決できますか?各ページに1つずつ移動するのではなく、Web.Configを介して変更できますか

0 投票する
0 に答える
43 参照

angular - Sub angular app, inside main angular app, at a subroute

I have two angular app abc.com (main-app), and another xyz.com (sub-app), both are live on different URL.

I need a feature that when user hits abc.com/123, the home page of (sub-app) xyz.com should get open and then I can use the complete (sub-app) as individual app inside abc.com/123.

for ex., my (sub-app) has route name xyz.com/details then user should be able to see this component when it goes to abc.com/123/details.

So, here abc.com/123 needs to work same as a domain xyz.com with all similar functionalities (maybe you can think it like, abc.com/123 act as a sub-domain for (main-app) abc.com, but acts as main domain for (sub-app) xyz.com).

NOTE:

  • Both apps are running on AWS, (S3 and CloudFront)
  • There is a requirement to have both the sites running on different servers and code base also needs to be different
  • I'm using angular v11 for abc.com, and v9 for xyz.com

Is there any way I can achieve this in angular? Please help, Thanks in advance.