简体   繁体   中英

how to configure IIS for a specific website nam

Hi everyone,

I have configured my web application using IIS7. It is running fine for http:// localhost/, but I need to give some website name like http://myexamsystem.com/ instead of "localhost". I have tried all the possible ways from IIS7, but I am not getting the result. Steps I did upto now: Step 1: Right Click on "Sites".

Step 2: Selected "Add Website" option.

Step3:In "Add web site" dialog box:

Site Name:"myexamsystem", Application Pool: "DefaultAppPool" Physical path: "desktop\\myproject folder" Binding

Type:HTTP, Ip address "All Unassigned", Port:80

Host Name: "myexamsystem.com"

OK

Error Messege:

This page can't be displayed

•Make sure the web address http://myexamsystem.com/ is correct.`

If this is just for debugging / local development, then you'll need to add an entry in your HOSTS files. This is located:

c:\windows\system32\drivers\etc\hosts

It can be edited in notepad (if you have administrator rights on your machine). You just add the following entry:

127.0.0.1       myexamsystem.com

Note that this will only work locally. If you want it public, then you'll need to buy the domain name and point it to an external IP address.

Update

Just seen your comment about it needing to run on your local network. A quick way is to add your internal network IP address to each machine's HOSTS files. You can find out your internal IP address by typing ipconfig into the command prompt. Then add it to the HOST file of the other machines in the same way as I descibed above, except use your internal IP in their HOST file rather than 127.0.0.1.

If you don't want to manually add them to each computer, then as far as I know, you'll need a DNS server.

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