Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Disable virtual directory browsing when pointing the site to the VD

Posted on 2010-09-02
2
Medium Priority
?
788 Views
Last Modified: 2012-05-10
In IIS 7/Server 2008 is there a way of stopping a user browsing a virtual directory when the site at the level above is pointing to it.

For example;
When I add a Virtual directory to a server its URL would be;
http://HOSTNAME/VIRTUALDIRECTORYNAME/default.aspx

But by changing the site to point to the physical folder of the virtual directory users are able to browse the site without entering the virtual directory name.
http://HOSTNAME/default.aspx

When I enable the latter by changing the site’s physical path is there a way of disabling browsing via the virtual directory name. Or driving users to the new http://HOSTNAME/default.aspx URL?
0
Comment
Question by:DavidiusK
2 Comments
 
LVL 1

Expert Comment

by:Noggin182
ID: 33588172
If I understand you right you want to force users that are still trying to access /vdir/file to be redirected to /file?

If so remove the virtual directory and create a real directory with the same name. Then you can just change the properties of your virtual directory so it send back a redirect instead. From the IIS manager select your folder and then open "HTTP Redirect", it should be straight forward from this point on.
0
 

Accepted Solution

by:
DavidiusK earned 0 total points
ID: 33840602
I figured it out an appication can be set at the website level.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses
Course of the Month13 days, 6 hours left to enroll

963 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