URGENT:  IIS Virtual directories

Posted on 2004-04-30
Last Modified: 2010-04-06
I have a slight issue with IIS.  A developer created a web application with us.  Let us just call it "oranges" for reference.  This web application was a sub web of the default web.  The root url was


I have since created it's own web listening on port 8080.  So the root url is:


However, he has a lot of code that is looking for /oranges/etc/etc....
So I created a virtual directory called "oranges".  This url works:


But I want


to be all that the user will see.  How can I do this?  Is it a matter of configuring IIS?  BTW, it is a .NET project.  Or is it a matter of a configuration in .NET that would map /oranges to /.  

Please help.

Question by:ijenkins
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 52

Expert Comment

by:Ryan Chong
ID: 10965426
Can't you set the Home Directory to /oranges/etc/etc as you wish ?

Basically, you can set the Home Directory, by clicking the Site's Property, then select Home Directory tab, then edit the Local Path to map the path you want.

Hope this helps
LVL 23

Accepted Solution

rama_krishna580 earned 500 total points
ID: 10965568
I agree with Ryancys , you can set the Home directory to..

C:\...\oranges\ - location where all your application files exists. so under configuration menu look for HomeDirectory and set it and try you won;t be having any should be ok now..
after you set ...try

htt://localhost:8080/ - it will run..

best of luck..


Expert Comment

ID: 10981717

If this is IIS 5 or IIS6

Just create a new Web Site.
 for the IP address use ALL ASSIGNED
Then pick 8080 as the port, localhost as the Host Header
map it to C:\...\oranges as the new root

permissions are set correctly to the oranges directory.

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 10981723
Actually, instead of LOCALHOST...use the Machine Name
LVL 10

Expert Comment

ID: 11013196
and call the machine ORANGES


anyone for pie?
LVL 52

Expert Comment

by:Ryan Chong
ID: 11015952
Any progress, ijenkins ?

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

734 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