+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 25

Thread: Multi folder web app

  1. #11
    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

    So how can i handle it all from root web.config??
    I have the code in my first post above.

    What changes wud i need?

  2. #12
    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

    Add something like the following:
    Code:
    <location path="DirectoryName">
      <system.web>
        <authorization>
            <deny users="?"/>
        </authorization>
      </system.web>
    </location>
    
    You can place as many of these as you want in the root config file. Keep in mind, if you were to use multiple .config files (one for each directory...it wouldn't need to be an exact copy...see here for more information: ASP.NET Configuration
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #13
    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

    I have that J, do i need to do something with this portion??
    Code:
        <authentication mode="Forms">
          <forms name="site" loginUrl="default.aspx" protection="All" path="/" timeout="30">        
          </forms>
        </authentication>
    

  4. #14
    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

    That looks right to me, M. Post what you have for the <location> nodes.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  5. #15
    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

    Code:
      <location path="Admin">
        <system.web>
          <authorization>
            <deny users="?" />
          </authorization>
        </system.web>
      </location>
    
      <location path="Members">
        <system.web>
          <authorization>
            <deny users="?" />
          </authorization>
        </system.web>
      </location>
    
    <system.web>
        <authentication mode="Forms">
          <forms name="site" loginUrl="default.aspx" protection="All" path="/" timeout="30"></forms>
        </authentication>
    </system.web>
    

  6. #16
    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

    Is there any particular reason why you're creating each of those folders as Virtual Directories?
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  7. #17
    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 jmurrayhead View Post
    Is there any particular reason why you're creating each of those folders as Virtual Directories?
    They all are accessed by different sets of people, so i have different kind of pages for each section, so i set them as virtual directories.

    Plus i had security in my mind too.

  8. #18
    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

    I don't really see how setting each as a separate virtual directory is helping anything. You can handle the security via the web.config.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  9. #19
    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 jmurrayhead View Post
    I don't really see how setting each as a separate virtual directory is helping anything. You can handle the security via the web.config.
    Do you mean i could have all pages in root and not different folders??
    If thats what you mean, then its just the way i preferred (diff folders).

    Plus i could handle security for each folder by <location> nodes.
    Am i missing here anything J?

  10. #20
    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

    Yes, you could also have all the pages in the root...but I prefer to have separate folders. There seems to be confusion on what a Virtual Directory is. You DO NOT need the subdirectories to be setup as Virtual Directories in IIS. Only the root directory of the application. All other directories are just normal folders.
    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 2 of 3 FirstFirst 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