473,889 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Virtual Directories IIS 5.1

17 New Member
Hi,
Prelude
++++++
I'm running a small network of 5 PC's with Windows XP Prof. I have set the 1 PC up as a IIS5.1 (Web Server). I have managed to discover the trick of having a firewall enabled but at the same time allow client PC's to view the web site.

Problem
++++++
The problem is when I create a virtual directory within IIS5.1. I correctly use the wizard to point to the "path" of the alias web site folders (located elsewhere on the PC). Since doing this I cannot access the web site from the clients. The message I keep getting is that "youre not authorised to view this page". I have all the pages set to anonymous access, so I don't see that this is a problem.

I have found that by sharing the folders containing the web site files (normally, on the network) seems to resolve the problem. But not 100%! This now allows clients to browse the network and access the files used to create the website via the network or "back door".

Does anyone have any idea how to "share" virtual directories within IIS 51, but at the same time not have them available to persons browsing the actual network.

Cheers
Tukumbi
Dec 9 '06 #1
7 10615
sashi
1,754 Recognized Expert Top Contributor
Hi,
Prelude
++++++
I'm running a small network of 5 PC's with Windows XP Prof. I have set the 1 PC up as a IIS5.1 (Web Server). I have managed to discover the trick of having a firewall enabled but at the same time allow client PC's to view the web site.

Problem
++++++
The problem is when I create a virtual directory within IIS5.1. I correctly use the wizard to point to the "path" of the alias web site folders (located elsewhere on the PC). Since doing this I cannot access the web site from the clients. The message I keep getting is that "youre not authorised to view this page". I have all the pages set to anonymous access, so I don't see that this is a problem.

I have found that by sharing the folders containing the web site files (normally, on the network) seems to resolve the problem. But not 100%! This now allows clients to browse the network and access the files used to create the website via the network or "back door".

Does anyone have any idea how to "share" virtual directories within IIS 51, but at the same time not have them available to persons browsing the actual network.

Cheers
Tukumbi

Hi there,

Hi there,

Please check IUSR permission. Kindly refer to below attached link for further reading & understanding, hope it helps. Good luck & Take care.

Virtual Directory Setup Instructions
Dec 11 '06 #2
Tukumbi
17 New Member
Thanks for the reference. It does not seem to solve the problem though! The folder containing the web pages is not a sub folder of
c:\inetpub\wwwr oot

as soon as I make the subfolder, containing the web pages, a subfolder of the path "c:\inetpub\www root" only then does the Virtual Directory actually work. I cannot seem to point the virtual directory to say:
C:\WebApp\defau lt.htm etc. Again client's complain about have no authorisation to view the file, yet they do when WebApp *.* is relocated to being a subfolder (anywhere) under "c:\inetpub\www root".

Cheers
Tukumbi
Dec 11 '06 #3
radcaesar
759 Recognized Expert Contributor
Dont ever try be Anonymous Acess and Share over intranet.

Try by give the Access rights for the Users u want in that domain in the Document Security tab.

Else use windows authentication.

:)
Dec 14 '06 #4
Banfa
9,065 Recognized Expert Moderator Expert
Have you tried right clicking on the folder you want to be the virtual directory from Explorer and checking that the Guest user has read access rights in that folder?
Dec 15 '06 #5
Tukumbi
17 New Member
Bafana,
Please explain in more detail where / how you set the Guest Account access from Explorer for a folder?

Thanks
Tukumbi
Dec 22 '06 #6
Tukumbi
17 New Member
Hi everyone,
I think I've sorted this one out. (II5.1 on Windows XP Prof)

1. Ensure the browser of the WebServer settings for Intranet security level is reset to the default (medium - low).
2. Ensure that the Windows Firewall is set to allow HTTP (see advanced tab on windows firewall).
3. Using anonymous access on InetManager, make sure that the Virtual Directory has the security to allow anonymous access (with the guest account:
IUSR_ServerName). ServerName being the name of the PC/Server. Also
allow IIS to control password should be ticked.

4. On the Virtual Directory Tab of the (Selected Virtual Directory) ensure that
a) Local path is correct to where actual files reside on your harddrive.
b) Read must be ticked
c) Index this resource (should be ticked)
d) Execute permission: "Scripts only"

5. On the actual directory contain the web pages. Ensure that it still exists and that it has been shared as a Web Folder with an Alias (via Windows Explorer).

Thanks Guys
This is really a great web site, please use it. If you find something that may be useful please also share with everyone else. Also see if you cannot answer other peoples queries instead of just looking for solutions to your queries.

The biggest problem I had here was that the security settings of the browser on the web hosting PC was changed and as a result all clients could not view pages in the Virtual directory. I don't know why, but that is how it is!
Dec 22 '06 #7
sashi
1,754 Recognized Expert Top Contributor
Hi everyone,
I think I've sorted this one out. (II5.1 on Windows XP Prof)

1. Ensure the browser of the WebServer settings for Intranet security level is reset to the default (medium - low).
2. Ensure that the Windows Firewall is set to allow HTTP (see advanced tab on windows firewall).
3. Using anonymous access on InetManager, make sure that the Virtual Directory has the security to allow anonymous access (with the guest account:
IUSR_ServerName). ServerName being the name of the PC/Server. Also
allow IIS to control password should be ticked.

4. On the Virtual Directory Tab of the (Selected Virtual Directory) ensure that
a) Local path is correct to where actual files reside on your harddrive.
b) Read must be ticked
c) Index this resource (should be ticked)
d) Execute permission: "Scripts only"

5. On the actual directory contain the web pages. Ensure that it still exists and that it has been shared as a Web Folder with an Alias (via Windows Explorer).

Thanks Guys
This is really a great web site, please use it. If you find something that may be useful please also share with everyone else. Also see if you cannot answer other peoples queries instead of just looking for solutions to your queries.

The biggest problem I had here was that the security settings of the browser on the web hosting PC was changed and as a result all clients could not view pages in the Virtual directory. I don't know why, but that is how it is!

Hi there,

Congrats on your discovery. Very well, i told you to check permission of the IUSR_ earlier itself. Good luck & Take care.
Dec 22 '06 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4241
by: Jeffry van de Vuurst | last post by:
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the NetAdvantage component suite from Infragistics for my web applications. When installing they create several virtual
4
2600
by: Michelle | last post by:
I have a website with 6 virtual directories under it who dont "see" the bin/ directory in the root. If I create a /bin directory in each virtual directory and then copy my dll's in there, it works. Any idea what I'm doing wrong? Or any other way to reference a dll? I know a solution is to copy the dll's into the GAC, but this server has many other websites running on it, so I don't want the dll's there and available to any other...
8
3405
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set it up as C:\domains\appA. Locally, my IIS root points to C:\domains. I don't point it to C:\domains\appA since if I have an appB under C:\domains I wouldn't be able to get to it. So to access it via my browser I go to localhost/appA.
1
1263
by: Mark | last post by:
In our root web site, we have roughly 100 folders. 10 of these are virtual directories. The other 90 folders are a mix - some contain static HTML content. Others contain subfolders and additional virtual directories. Yikes. I need to identify all the virtual directories on our server, but drilling down into every single folder in search of sub folders containing virtual directories is potentially error prone. Is there a way to list...
5
4104
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in both projects. Both controls(dlls) have been signed using SN.exe and I've set up the appropriate .Net assembly permissions using those Strong Names The DLL's have been copied to the /bin directory in both web virtual directories.
3
1984
by: Paras Sharma | last post by:
Hi all, We are facing this big problem. Scenario is as follows. We have one single solution (say EIS) under which there are 25 projects. All the files are saved at a central location under Visual Sorce Safe on a seprate machine. For a new person who is trying to setup this solution file on his / her local machine follows the following step. 1. "Set working folder" for the EIS folder from VSS on to his local machine
4
2239
by: Chuck P | last post by:
Using vs05 and making an asp.net 2.0 website. We use VSS and have everything organized like this SolutionName Documents Code WebProjectName1 WebServiceProjectName1
2
2008
by: Angelo Cook | last post by:
how do you prevent the publishing of virtual directories in VS 2005. I have been using VS2003 and developing websites for years. I have been using virtual directories for images, icons, styles and scripts. Which in dot net 1.1 and VS2003 when I copied or published my web sites the virtual directories were ignored. Now I am trying to convert to VS2005 and dot net 2.x and now my development environment now sees the virtual directories and...
8
1739
by: supasnail | last post by:
I have a happily working set of asp pages which read from the database via include file "./_private/include/database.mdb". However, when I try to gain access to this database on pages one folder removed using "../_private/include/database.mdb", the pages won't display. This whole system works fine on my home test server (iis.5.0), but 'breaks' when uploaded to the public server. I know the path to database is correct because the upper...
4
2888
by: Paul F | last post by:
Im confused about the difference(s) between virtual directories and physical directories in IIS. Any ideas? *** Sent via Developersdex http://www.developersdex.com ***
0
9961
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9807
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11188
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10789
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7150
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5828
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4251
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3255
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.