Ok here goes:
WEBSITE main directory allows anonymous users fine.
SITEA, SITEB, and SITEC are all subdirectories under WEBSITE that refer to
graphics and javascript in the main virtual directory. So we have the
following structure.
/WEBSITE
/WEBSITE/images
/WEBSITE/js
/WEBSITE/SITEA/.....
/WEBSITE/SITEB/.....
/WEBSiTE/SITEC/.....
Now sites A,B, and C will all have seperate loging forms using custom
authentication but I want the web.config to control access so that anyone
attempting to go directly to a page in one of the sites will be redirected
back to the login.aspx.... /SITEA/login.aspx, /SITEB/login.aspx, or
/SITEC/login.aspx.
I cannot place a seperate web.config in the the subdirectories with their
own authentication xml elements...
HELP!
Brian 3 3789
<authentication > can only be specified per application. If you want different
authentication schemes for the child directories then you'll have to make
them applications in IIS.
-Brock
DevelopMentor http://staff.develop.com/ballen Ok here goes:
WEBSITE main directory allows anonymous users fine. SITEA, SITEB, and SITEC are all subdirectories under WEBSITE that refer to graphics and javascript in the main virtual directory. So we have the following structure. /WEBSITE /WEBSITE/images /WEBSITE/js /WEBSITE/SITEA/..... /WEBSITE/SITEB/..... /WEBSiTE/SITEC/..... Now sites A,B, and C will all have seperate loging forms using custom authentication but I want the web.config to control access so that anyone attempting to go directly to a page in one of the sites will be redirected back to the login.aspx.... /SITEA/login.aspx, /SITEB/login.aspx, or /SITEC/login.aspx.
I cannot place a seperate web.config in the the subdirectories with their own authentication xml elements...
HELP!
Brian
So I suppose the only way to share the images and js directories is to make
them virtual directories as well.
"Brock Allen" wrote: <authentication > can only be specified per application. If you want different authentication schemes for the child directories then you'll have to make them applications in IIS.
-Brock DevelopMentor http://staff.develop.com/ballen Ok here goes:
WEBSITE main directory allows anonymous users fine. SITEA, SITEB, and SITEC are all subdirectories under WEBSITE that refer to graphics and javascript in the main virtual directory. So we have the following structure. /WEBSITE /WEBSITE/images /WEBSITE/js /WEBSITE/SITEA/..... /WEBSITE/SITEB/..... /WEBSiTE/SITEC/..... Now sites A,B, and C will all have seperate loging forms using custom authentication but I want the web.config to control access so that anyone attempting to go directly to a page in one of the sites will be redirected back to the login.aspx.... /SITEA/login.aspx, /SITEB/login.aspx, or /SITEC/login.aspx.
I cannot place a seperate web.config in the the subdirectories with their own authentication xml elements...
HELP!
Brian
Yep -- a nested virtual directory under all of your applications' directories
mapped to the same physical location works.
-Brock
DevelopMentor http://staff.develop.com/ballen So I suppose the only way to share the images and js directories is to make them virtual directories as well.
"Brock Allen" wrote:
<authentication > can only be specified per application. If you want different authentication schemes for the child directories then you'll have to make them applications in IIS.
-Brock DevelopMentor http://staff.develop.com/ballen Ok here goes:
WEBSITE main directory allows anonymous users fine. SITEA, SITEB, and SITEC are all subdirectories under WEBSITE that refer to graphics and javascript in the main virtual directory. So we have the following structure. /WEBSITE /WEBSITE/images /WEBSITE/js /WEBSITE/SITEA/..... /WEBSITE/SITEB/..... /WEBSiTE/SITEC/..... Now sites A,B, and C will all have seperate loging forms using custom authentication but I want the web.config to control access so that anyone attempting to go directly to a page in one of the sites will be redirected back to the login.aspx.... /SITEA/login.aspx, /SITEB/login.aspx, or /SITEC/login.aspx. I cannot place a seperate web.config in the the subdirectories with their own authentication xml elements...
HELP!
Brian This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lou |
last post by:
Please can someone put me out my misery!
Im trying to find a multiple user/password protection script that will
redirect the specific user to a specific directory.
At the moment I have set up htaccess which is fine but can only
protect one directory unless I put htaccess on each directory which I
think is a bit long winded, but is there any other way I can do this
with using only one password script?
Any info would be greatly...
|
by: Matthias S. |
last post by:
Hi,
here is what I'm trying to do: I have a virtual directory called
"WebApp". Under this one I've got 2 physical directories called
"Customers" and "Admins".
I implemented Forms-based authentication. If the logon credentials are
ok, I transfer the user to either the "Customers" or the "Admins"
subdirectory. Those two directories should have a web.config file, which
allows the roles "Admins" and "Customers" access the resources in the
|
by: Pint |
last post by:
I have a simple web user control. I'd like for this form to appear twice
on a single aspx page. How do I get around the problem of having more
than one <form runat=server> tag?
More background: the user control is a login box. For design reasons I
want the box to be available in the header as well as the bottom of the
page.
Thanks,
Pint
|
by: Graham |
last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and wizards.
But, I have found that trying to do something "outside the norm" adds a rather large level of complexity and/or data replication.
Background
I have been commissioned to create a web-based application for a client. It has a formsaunthentication...
|
by: xenophon |
last post by:
I have a web site with forms authentication and a single logon page. I
have 4 subdirectories, each that should be protected by a different
username/password combination. For testing purposes, the
username/password are hardcoded into the code-behind C# code.
How can I write my web.config to make this happen?
Thanks.
| |
by: Joseph Geretz |
last post by:
I have the following class which I am serializing and passing back and forth
between my Web Service application and the client.
public class Token : SoapHeader
{
public string SID;
public string UID;
public string PWD;
}
|
by: Benton |
last post by:
Hi there,
I want to have an unrestricted root directory and some protected
subdirectories on my ASP.NET 2.0 application. I want each subdirectory to
have its own Login.aspx page.
The following article is a good start, but it uses a single Login.aspx
located in the root directory to protect a subdirectory:
http://www.theserverside.net/tt/articles/showarticle.tss?id=FormAuthentication
|
by: Samir Chouaieb |
last post by:
Hello,
I am trying to find a solution to a login mechanism for different
domains on different servers with PHP5.
I have one main domain with the user data and several other domains that
need a login to show data.
I want the user to login only once when he visits any of my domains.
|
by: Fareast Adam |
last post by:
I want to make sure all users those login are different in a time either on the same or different computer or web browser. Following are sample of my program which consist 4 different pages;
#users.php
$users = array(
'user1' => md5('password1'),
'user2' => md5('password2')
);
$salt = substr(md5(date('F')), 8);
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |