简体   繁体   中英

IIS hanging forever local website

I'm trying to set up the IIS so I can access my local web application project at dev.example.com. I have the physcical path set to the root of my web app, and the binding as shown in the picture below.

在此处输入图片说明

I have added this to the hosts file

在此处输入图片说明

But when trying to access it in chrome it just hangs forever.

在此处输入图片说明

Is there something I'm missing?

I had to set the permissions of my application pool identity

ApplicationPoolIdentity is actually the best practice to use in IIS7. It is a dynamically created, unprivelaged account. To add file system security for a particular application pool see IIS.net's "Application Pool Identities". The quick version:

If you application pool is named "DefaultAppPool" (just replace this text below if it is named differently)

Open Windows Explorer

Select a file or directory.

Right click the file and select "Properties"

Select the "Security" tab

Click the "Edit" and then "Add" button

Click the "Locations" button and make sure you select the local machine. (Not the Windows domain if the server belongs to one.)

Enter "IIS AppPool\\DefaultAppPool" in the "Enter the object names to select:" text box. (Don't forget to change "DefaultAppPool" here to whatever you named your application pool.)

Click the "Check Names" button and click "OK".

I found the answer here

IIS7 Permissions Overview - ApplicationPoolIdentity

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