This is a discussion on Multi folder web app within the .Net Development forums, part of the Programming & Scripting category; Hey guys I have an app where i have some folders like admin, members. So i have set them as ...
| |||||||
|
#1
| ||||
| ||||
| Hey guys I have an app where i have some folders like admin, members. So i have set them as virtual directories to run. Then i have used formsauthenication for login in each folder's login page. Do i need web.config in each folder? At this moment i have this in my web.config which resides in root Code: <authentication mode="Forms">
<forms name="site" loginUrl="default.aspx" protection="All" path="/" timeout="30">
</forms>
</authentication>
__________________ Get the Mantra! Last edited by micky; July 9th, 2009 at 08:17 AM. |
|
#2
| ||||
| ||||
| Quote:
![]() Do the pages in the sub folder still work if you don't have them setup as virtual folders?
__________________ Join the folding team |
|
#3
| ||||
| ||||
| Quote:
Havent tried it without setting them as virtual directory! |
|
#4
| ||||
| ||||
| Quote:
![]() You say you always set the folders up as virtual directories, then you say you haven't tried not setting them up... ![]() Yeah, you would have to set the root of the app up, but then I believe sub folders of this root would use the same web.config....In the same way your App_Code, App_Data etc. folders use the same web.config... |
|
#5
| ||||
| ||||
| Sorry RR, i meant i have set them and not tried without setting them as virtual directory did i say that right?? ![]() Anyway, do i need separate web.config files then? |
|
#6
| ||||
| ||||
| Quote:
If you just setup the root of the app as a virtual folder and had normal sub folders then they would use the web.config in the root of the app.... I think.... Not entirely sure though... |
|
#7
| ||||
| ||||
| Hmm, just to add RR......... i dont have config file in each folder rite now, and they work as such. |
|
#8
| ||||
| ||||
| Quote:
![]() What was your original question? |
| The Following User Says Thank You to richyrich For This Useful Post: | ||
micky (July 9th, 2009) | ||
|
#9
| ||||
| ||||
| RR, i just wanted to know if i really need a config file in each folder, although it works without having them. |
|
#10
| ||||
| ||||
| No, a config file is not needed for each directory within an application. It will inherit from the root web.config. However, if you wanted to handle things like authorization, you could place a web.config file in the specific sub directory with the authorization information...but this can also be handled in the root web.config file.
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.If you like it here...throw us a few bones to help support us. Join our Folding team: DeveloperBarn Folding |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Another Folder Permission Issue | Rebelle | Microsoft IIS | 7 | February 11th, 2009 11:01 AM |
| Permission to make changes to xml in folder | micky | Microsoft IIS | 11 | October 23rd, 2008 08:13 AM |
| Shared folder issue | Rebelle | Microsoft Windows | 5 | August 18th, 2008 10:39 AM |
| Multi Prints with Watermarks | AOG123 | Microsoft Access | 1 | July 9th, 2008 09:21 AM |
| Make File/Folder restricted to only certain users | Rebelle | Microsoft IIS | 16 | March 26th, 2008 02:06 PM |