Solved

virtual hosts in IIS  7.5

Posted on 2014-02-03
3
1,377 Views
Last Modified: 2014-02-06
I have IIS 7.5

I am trying to set up my computer to run websites in a tutorial...
That tutorial has four folders that needs to be configured as virtual hosts...  
c:\myfolder\mywebsite1
c:\myfolder\mywebsite2
c:\myfolder\mywebsite3
c:\myfolder\mywebsite4


In the tutorial they have asked to create four virtual hosts for those four folders in IIS 7.5.. I dont know how to do that...

All those folders are on my single machine... (So guess there is no requirement in virtual-hosting)

However, when i checked the tutorials, in the screenshots it says  http:\\mywebsite1
http:\\mywebsite2 , http:\\mywebsite3 , http:\\mywebsite4
i.e. without the localhost or the server name... I cannot open the websites like http:\\mywebsite1 or http:\\mywebsite2 etc... i have to put http:\\localhost\mywebsite1  

The tutorials does not run by putting http://localhost/mywebsite1 ... how can i create websites like -
  http:\\mywebsite1
http:\\mywebsite2 , http:\\mywebsite3 , http:\\mywebsite4
so that i can run all my tutorials  


I tried using hosts file in windows folder but it did not work
how can i do that in IIS 7.5 ... please help
thanks a lot
0
Comment
Question by:ts84zs
  • 2
3 Comments
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
Comment Utility
I created a short video for you to show how it works
http://www.youtube.com/watch?v=jMTY_56XXCU
1. create new websites in IIS
2. give each website its own unique hostname
3. edit your hosts file to reflect the hostname i.e. website1 127.0.0.1
4. Test Website by going to IIS and then use the browse Websitex on port 80
0
 

Author Comment

by:ts84zs
Comment Utility
thanks so much

i will check it...
0
 

Author Closing Comment

by:ts84zs
Comment Utility
thanks a lot that solved my problem
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
WCF SVC File Endpoint 3 73
DNS issue 24 85
Browser authentication 1 61
502 - Web server received an invalid response 4 32
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now