Click here to Skip to main content
13,094,983 members (85,510 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I have hosted an application on IIS 7. As the application's Name is vary lengthy ,i want to set a virtual path for the application.

I found some article's on google about setting it. They told me to create a virtual directory and i did but still the virtual path remains same. Please tell me what wrong i am doing here ??
Posted 16-Sep-12 19:35pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Open IIS Manager by Typing inetmgr on Start Menu or Run.

Click On Sites on the Left navigation of IIS Manager.

Right Click on Site where you want to Add Virtual Path and Choose Add Virtual Directory.

Put the Short Name of Application/Website in Alias Field. and Put the Exact Physical Path of Application in Physical Path Textbox.

If you want user to Connect website with Authorization, Click on Connect As and Type Username and Password. and then Click on OK,

You have set Virtual Directory.

Remember Virtual Path will be Used by IIS not by File System. When you will browse website using http://localhost/AliasName, you can access Virtual Path but if you tried to Access, C:\inetpub\wwwroot\AliasName it will not be available there.
ujjwal uniyal 17-Sep-12 2:07am
I did exactly as u said. I right Clicked on the application under default websites , Added a virtual directory gave it it's alias Name and path and then click Ok. But again when i am right clicking the application and then Manage Application and then Advance settings , it's again showing me Virtual path as \Actual name insted of \Alias Name
John Bhatt 17-Sep-12 3:29am
It is bit confusing you know. Adding a Virtual Directory means accessing all your Files without showing the name of your Exact Physical Path. This will show all files in Virtual Directory.
ujjwal uniyal 17-Sep-12 3:32am
That i am understanding but why isn't the virtual path being changed to the alias name instead it's showing the application name. How ever if add a virtual directory under default website and then assign a path of a project to it then it is working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 17 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100