简体   繁体   中英

Issue with Deploying an app in IIS 7.5

I am trying to deploy an app on IIS7.0

I developed the app in 4.0 (Just a web app not MVC or anything)

These are the steps I followed


1.Select Application pools -> Create New ->TestApp--> Select the framework version to 4.0

  1. Sites -> Add web Sites -> SiteName ->TestApp -->Choose the TestApp Application Pool

  2. Select the Physical Path

  3. If I leave the Host Name Empty and click on Ok

when I go to the website and manage application ->Browse I am seeing the App as localhost (Very Well)

But When I enter the host name as Testapp.Domainname.com It is not working what am I doing wrong??

You need to have that domain configured in DNS server you're using. If you want to have the app accessible under this URL from the internet, you need to go to one of the domains resellers, buy the domain name and configure it to point to your IIS server.

For development, you probably want to set up DNS name locally, for your machine only - you have to specify this domain name in your hosts file than:

127.0.0.1  testapp.domainname.com

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