Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

virtual directory 1

Status
Not open for further replies.

pollux0

IS-IT--Management
Mar 20, 2002
262
US
I have a domain test.com in which points to 202.5.5.5 . I am trying to create the host funk.test.com in which users will be directed to a folder(funkFolder) in the 202.2.2.5 website. Is this done through iis or asp code within the website? How?

I have already set up the dns host funk.test.com to point to 202.2.2.5
 
Use a host header

That is assuming you are using the server version of your OS



Chris.

Indifference will be the downfall of mankind, but who cares?
 
host header? w2k server w/ iis 5.0
So there is no option in IIS?
 
Go in IIS and selected your funk.test.com in Website folder and click Action->Properties. Then click on Website Tab, you'll see Advanced Button next to IP Address, so click on that.

Now you see Advanced Multiple Web Site Configuration dialog box, then select "default" with Port 80 and click edit button and put "funk.test.com" in Host Header Name textbox.

Hope this help
 
How does this map funk.test.com to "202.2.2.5/funkFolder"? I still get directed to the root folder (202.2.2.5/ , the same as I type funk.test.com.

Thanks in advance
 
Set the home directory to be the folder you want to start in




Chris.

Indifference will be the downfall of mankind, but who cares?
 
I have not been successful. Can you walk me through setting it up in detail?

I have deleted all objects and websites on the iis server.

I have one ip address to use.

Two host names to use: and funk.test.com

When a users types they go to the root folder in the website. when a users types funk.test.com, they are put into a folder in the root directory of
thanks
 
here's how you need to do it:

In IIS, create two different sites, one for and one for funk.test.com
Right click on and go into properties.
Under the "Web Site Tab" click on Advanced
This is where you edit the header information that they were talking about earlier.
For in the header information enter in the following by clicking the add button:
for IP Address: you can either set it to the one you have in there or leave it to All Unassigned, the 2nd option works better of the ip may change at any time down the road.
TCP Port, enter in 80 (default HTTP port)
Host Header name: Enter in what you want the user to type in to the browser to get there, for you would enter in and as a good practice enter in test.com. that way if the user doesnt put the the address the site will still come up.
Press OK after entering in that information, then OK again to get back to the properties window.
Now on to the "Home Directory Tab", For local path, browse to the folder you want the user to see, for example, would point to f:\webs\test and there may be a folder in f:\webs\test\ called funk that you want funk.test.com to come up in, thats ok. Click on ok. and now do the same thing for funk.test.com only instead of in the header field you would put funk.test.com. Below is a chart to help you along:

Header Information:
test.com
both point to all unassined up (or the IP you choose)
Home Directory:
f:\webs\test

funk.test.com

Header Information:
funk.test.com
points to all unassined up (or the IP you choose)
Home Directory:
f:\webs\test\funk (or some other directory somewhere else.

Let me know if you need more help, with 5 years experiance and not working in the tech industry anymore I need something to do with my knowledge.

Scott Heath
 
Thank you, Scott! Needed exactly what you provided! All your knowledge is not going to waste.

Trey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top