+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 25

Thread: Multi folder web app

  1. #1
    Lazy Bum micky is a jewel in the rough micky is a jewel in the rough micky is a jewel in the rough micky is a jewel in the rough micky's Avatar
    Join Date
    Jul 2008
    Location
    India
    Posts
    1,758
    Blog Entries
    2
    Rep Power
    8

    Multi folder web app

    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>
    
    Last edited by micky; July 9th, 2009 at 09:17 AM.

  2. #2
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by micky View Post
    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>
    
    I think if you have them setup as seperate folders then you would need a seperate web.config for each...I think if you just setup the root as an app, you could still use sub folders for different sections, then they would all be handled by the root web.config...I think....

    Do the pages in the sub folder still work if you don't have them setup as virtual folders?

  3. #3
    Lazy Bum micky is a jewel in the rough micky is a jewel in the rough micky is a jewel in the rough micky is a jewel in the rough micky's Avatar
    Join Date
    Jul 2008
    Location
    India
    Posts
    1,758
    Blog Entries
    2
    Rep Power
    8

    Quote Originally Posted by richyrich View Post
    I think if you have them setup as seperate folders then you would need a seperate web.config for each...I think if you just setup the root as an app, you could still use sub folders for different sections, then they would all be handled by the root web.config...I think....

    Do the pages in the sub folder still work if you don't have them setup as virtual folders?
    I always set the folders as virtual directories, as they dont work without it!!

    Havent tried it without setting them as virtual directory!

  4. #4
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by micky View Post
    I always set the folders as virtual directories, as they dont work without it!!

    Havent tried it without setting them as virtual directory!
    micky, you're confusing me..

    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. #5
    Lazy Bum micky is a jewel in the rough micky is a jewel in the rough micky is a jewel in the rough micky is a jewel in the rough micky's Avatar
    Join Date
    Jul 2008
    Location
    India
    Posts
    1,758
    Blog Entries
    2
    Rep Power
    8

    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. #6
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by micky View Post
    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?
    I'm not entirely sure micky.....I would have said that setting up each sub folder as a virtual folder means you'd need a seperate web.config in each virtual folder.

    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. #7
    Lazy Bum micky is a jewel in the rough micky is a jewel in the rough micky is a jewel in the rough micky is a jewel in the rough micky's Avatar
    Join Date
    Jul 2008
    Location
    India
    Posts
    1,758
    Blog Entries
    2
    Rep Power
    8

    Hmm, just to add RR......... i dont have config file in each folder rite now, and they work as such.

  8. #8
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by micky View Post
    Hmm, just to add RR......... i dont have config file in each folder rite now, and they work as such.
    Guess you can forget everything I've said then micky...

    What was your original question?

  9. #9
    Lazy Bum micky is a jewel in the rough micky is a jewel in the rough micky is a jewel in the rough micky is a jewel in the rough micky's Avatar
    Join Date
    Jul 2008
    Location
    India
    Posts
    1,758
    Blog Entries
    2
    Rep Power
    8

    RR, i just wanted to know if i really need a config file in each folder, although it works without having them.

  10. #10
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,533
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    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, give me rep.
    If you like it here...throw us a few bones to help support us.


+ Reply to Thread
Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Another Folder Permission Issue
    By Rebelle in forum Microsoft IIS
    Replies: 7
    Last Post: February 11th, 2009, 11:01 AM
  2. Permission to make changes to xml in folder
    By micky in forum Microsoft IIS
    Replies: 11
    Last Post: October 23rd, 2008, 09:13 AM
  3. Shared folder issue
    By Rebelle in forum Microsoft Windows
    Replies: 5
    Last Post: August 18th, 2008, 11:39 AM
  4. Multi Prints with Watermarks
    By AOG123 in forum Microsoft Access
    Replies: 1
    Last Post: July 9th, 2008, 10:21 AM
  5. Make File/Folder restricted to only certain users
    By Rebelle in forum Microsoft IIS
    Replies: 16
    Last Post: March 26th, 2008, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO