简体   繁体   中英

how to publish two different asp.net web application into singe website using IIS 7

I am new to IIS server. I have two different asp.net web application project example client project and admin project. when i try to publish this two application seperatly configured working fine.

but I need

client project ---> localhost:9999 or www.test.com

admin project ---> localhost:9999/admin or www.test.com/admin

if it's possible mean please tell step by step

1.You need to create a website and create binding

  <bindings>
                    <binding protocol="http" bindingInformation="*:9999:" />
                    <binding protocol="http" bindingInformation="*:80:www.test.com" />
                </bindings>

2.You need to register www.test.com in hosts files C:\\Windows\\System32\\drivers\\etc\\hosts. Or you need to register it to DNS.

127.0.0.1 www.test.com

3.Create a virtual application under your website with name admin

https://docs.microsoft.com/en-us/iis/configuration/system.applicationhost/sites/site/application/

4.Publish your client project to the root folder of your website

https://docs.microsoft.com/en-us/visualstudio/deployment/tutorial-import-publish-settings-iis?view=vs-2019

5.Publish your admin project to the application localhost/admin .

6.Grant permission for your application pool identity(IIS Apppool\\apppoolname) and authenticated user like IUSR.

7.Try to access the applications.

Since virtual application are isolated from your root application, you don't have to afraid of application conflicts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM