简体   繁体   中英

Classic ASP and ASP.NET sites on the same IIS

I have to set two web sites on the same IIS 7.5.

One of them is Classic ASP with MSAccess Database. The other one is ASP.NET. Meaning they will use different Application Pools.

I only have one port open : 80.

How can this be configured?

Thanks.

You can create 2 applications under the same website using the same port (80).
Each one can have different Application Pool.

This way, to browse applications, you will type

http://mywebsite/app1
http://mywebsite/app2

Otherwise you can have 2 different websites using the same port, but this involves configuring host header bindings over IIS and creating C-NAME record in your DNS

This way, to browse applications, you will type

http://app1.mydomain.com
http://app2.mydomain.com

You need to configure host headers ("Bindings") in IIS for your first site before you can open the second. In other words you have to tell IIS which hostname leads to the first website, cause you can't run 2 websites as "default" hostname.

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