IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 11th, 2006, 10:42 AM
rick barclay rick barclay is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Freehold, N.J.
Posts: 68 rick barclay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 11 m 8 sec
Reputation Power: 7
Q about IIS virtual directory

I'm just beginning asp.net. I have versions 1.1 and 2.0 installed on my Win XP Pro desktop. I've successfully installed IIS. I've set up a virtual directory to receive my html files.
Problem is, I was led to believe that installing a virtual folder would eliminate the need to include my computer's name in the URL.

For example, my computer's name is "home." My virtual directory name is "Rick." In order to get my indx.html to display, I have to type in http://home/Rick/index.html. If I type in just http://Rick/index.html, I get 404'd.

Is this the way IIS is supposed to work, or am I doing something wrong? (Frankly, so far, I like Apache better, but I hope things improve with IIS.

Thanks for your help.

Reply With Quote
  #2  
Old January 11th, 2006, 11:26 AM
Veamon's Avatar
Veamon Veamon is offline
Blowing up trees with my mind.
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2005
Location: Neverland Ranch, minus the touching.
Posts: 2,744 Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)  Folding Points: 131452 Folding Title: Super Ultimate Folder - Level 1Folding Points: 131452 Folding Title: Super Ultimate Folder - Level 1Folding Points: 131452 Folding Title: Super Ultimate Folder - Level 1Folding Points: 131452 Folding Title: Super Ultimate Folder - Level 1Folding Points: 131452 Folding Title: Super Ultimate Folder - Level 1Folding Points: 131452 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 4 Days 4 h 57 m 50 sec
Reputation Power: 929
Quote:
Originally Posted by rick barclay
I'm just beginning asp.net. I have versions 1.1 and 2.0 installed on my Win XP Pro desktop. I've successfully installed IIS. I've set up a virtual directory to receive my html files.
Problem is, I was led to believe that installing a virtual folder would eliminate the need to include my computer's name in the URL.

For example, my computer's name is "home." My virtual directory name is "Rick." In order to get my indx.html to display, I have to type in http://home/Rick/index.html. If I type in just http://Rick/index.html, I get 404'd.

Is this the way IIS is supposed to work, or am I doing something wrong? (Frankly, so far, I like Apache better, but I hope things improve with IIS.

Thanks for your help.


You should be able to do http://localhost/rick/
__________________

Raid1 in XP Pro

My open source projects:
------------------------
Blobber - Add images as blobs to SQL Server
------------------------

Reply With Quote
  #3  
Old January 11th, 2006, 01:15 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 38 m 23 sec
Reputation Power: 92
If you wanted to get it from http://rick/index.html, you'd need to add a new entry to your hosts file (containing rick and your IP address), add a new host header value for the site and move the files out of the current virtual directory into the main root directory.
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
  #4  
Old January 12th, 2006, 10:50 AM
rick barclay rick barclay is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Freehold, N.J.
Posts: 68 rick barclay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 11 m 8 sec
Reputation Power: 7
Quote:
Originally Posted by edwinbrains
If you wanted to get it from http://rick/index.html, you'd need to add a new entry to your hosts file (containing rick and your IP address), add a new host header value for the site and move the files out of the current virtual directory into the main root directory.


I'm assuming the hosts file is the one that contains the

localhost 127.0.0

and I'm also guessing that my virtual host would be

rick 127.0.0


But I just tried http://rick/index.html after updating my hosts file and it doesn't work.

Sorry, but I don't understand what you mean by adding a new host header value for the site (which is merely a home
server site), and I'm sure you can't mean that I should move all my web files to my main root directory of C:\.

So, ok, let me guess: I have to go into Control panel, bring up the IIS Manager and the enter "rick" where it says headers? There is also an entry of my ip address for my cable provider. Is that the ip address you're referring to? And by root directory, do you mean the root for the "default web site?"

Backtracking through "default website" led me to a folder called "inetpub." Is that the one you mean? I should move my
"rick" directory from C:\rick to C:\inetpub\rick?

Could you elaborate a little more, please? Thanks very much for you help, everyone.

Reply With Quote
  #5  
Old January 12th, 2006, 11:58 AM
Ergo12 Ergo12 is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Location: trolls only :)
Posts: 172 Ergo12 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 20 h 5 m 11 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Whats the ip of the server? If say its 192.168.16.1 go to http://192.168.16.1/ you should see the default IIS page. Changes to hosts need a reboot.

On the command line do C:\ping localhost and show up the output.

Reply With Quote
  #6  
Old January 12th, 2006, 12:40 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 38 m 23 sec
Reputation Power: 92
Quote:
I'm assuming the hosts file is the one that contains the

localhost 127.0.0

and I'm also guessing that my virtual host would be

rick 127.0.0


Correct, but the entry you actually want is:

Code:
127.0.0.1   rick


(The IP address should be 127.0.0.1 and it goes IP address then host name)

Quote:
Sorry, but I don't understand what you mean by adding a new host header value for the site (which is merely a home
server site), and I'm sure you can't mean that I should move all my web files to my main root directory of C:\.


Open the IIS Manager, right-click your website and click Properties. In the Web Site tab, click the Advanced button in the "Web site identification" section. You'll be displayed a list of the current identities of your website. There will probably be only one record, containing "Default" for the IP address, 80 for the port and the host header value will be blank.

Click the Add button. Leave the IP address set to "All unassigned", enter 80 in the port and for the host header value enter "rick".

What you've done so far is create a host name called rick which resolves to your own computer. You've then told IIS that you also want to make the website available on the host name called "rick", as well your current computer name and localhost.

So, now when you go to http://rick/ you will be displayed the current contents of your home directory (probably the files from C:\Inetpub\wwwroot). If you were to go to http://rick/Rick/index.html (because you created a virtual directory called Rick) you'd get your homepage. But because you don't want to include the virtual directory name Rick, you'd want to move your files to C:\Inetpub\wwwroot, so that they're displayed when you bring up http://rick/index.html.

I hope that makes some sense.

Reply With Quote
  #7  
Old January 14th, 2006, 12:19 PM
rick barclay rick barclay is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Freehold, N.J.
Posts: 68 rick barclay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 11 m 8 sec
Reputation Power: 7
Mr. edwinbrains, you are my hero. Thanks a bunch. Be back later.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Q about IIS virtual directory


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway