Does web.config only govern .aspx files?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Does web.config only govern .aspx files?

    I have a directory that I want to restrict to members only. Members names &
    passwords are held in an SQL table. I've named the members_only directory as an
    application in IIS manager. I've built login & logout pages and everything
    seems work OK, but the URLs of PDFs and plain HTML files within the directory
    are accessible without logging in. Does the web.config file only govern the
    ..NET bits of the site and ignore other files like PDF & HTML? The
    web.config file for the members directory is as follows <configuration>
    <system.web> <authorization> <allow users='member' />
    <deny users='*' /> </authorization> </system.web>
    </configuration> System.web from the web.config at the root of the site
    <system.web> <customErrors mode='Off' /> <authentication mode =
    'Forms'> <forms name = 'SECAUTH '
    loginUrl='/members/members_only/member_login.aspx'> <credentials />
    </forms> </authentication> <authorization>
    <allow users='*' /> </authorization> </system.web>

    jefreywith1f Guest

  2. Similar Questions and Discussions

    1. put aspx files online
      Can you post the detailed err. msg? -- G. "Marichael Davy" wrote:
    2. How to Deploy aspx files
      Hi everybody, I'm a new be for ASP .NET. I made a simple project (C# coded web project) and I want to deploy it to my web site. My project...
    3. Templates + aspx files
      i've created a dreamweaver template wich use microsoft user controls i applyed it to all my pages and everything goes fantastic. it looks like: <%@...
    4. .aspx files don't work
      I have been having some trouble with my web server running under Windows 2000 Server, so I removed IIS and reinstalled it. Now, I noticed that my...
    5. Variable JIT of ASPX files?
      As I understand it, when the first page of an application is accessed, all ASPX/ASCX/etc. files in the same folder are compiled using the JIT...
  3. #2

    Default Re: Does web.config only govern .aspx files?

    I am afraid so as it is relevant only to the ASP.Net process, and this is
    only envoked with a .aspx page.

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "jefreywith1f" <webforumsuser@macromedia.com> wrote in message
    news:cvkvqd$gk$1@forums.macromedia.com...
    > I have a directory that I want to restrict to members only. Members names
    &amp;
    > passwords are held in an SQL table. I've named the members_only directory
    as an
    > application in IIS manager. I've built login &amp; logout pages and
    everything
    > seems work OK, but the URLs of PDFs and plain HTML files within the
    directory
    > are accessible without logging in. Does the web.config file only govern
    the
    > .NET bits of the site and ignore other files like PDF &amp; HTML? The
    > web.config file for the members directory is as follows
    <configuration>
    > <system.web> <authorization> <allow users='member' />
    > <deny users='*' /> </authorization> </system.web>
    > </configuration> System.web from the web.config at the root of the site
    > <system.web> <customErrors mode='Off' /> <authentication
    mode =
    > 'Forms'> <forms name = 'SECAUTH '
    > loginUrl='/members/members_only/member_login.aspx'>
    <credentials />
    > </forms> </authentication> <authorization>
    > <allow users='*' /> </authorization> </system.web>
    >

    Paul Whitham TMM Guest

  4. #3

    Default Re: Does web.config only govern .aspx files?

    Thanks for the answer. I'll have to look into another method of authorization.

    Geoff
    jefreywith1f Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139