简体   繁体   中英

ASP.net web service and Web Api in a single port

I already have a webservice which is running on a port, and we are going to implement another webapi project which need to be hosted on the same server without opening a new port. Is there any way to achieve that???

Here are two possibilities:

  • Run the WebAPI in a virtual directory of the same site.
  • Run the WebAPI as a new site on the same port but with a different hostname binding. Requires a new DNS entry and (if using https) a new certificate (or a wildcard certificate).

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