[ Pobierz całość w formacie PDF ]
." group Restricts access to this directory or front panel, with the given methods, to onlythe named group." valid-user All the users defined in the AuthUserFile can access once they providea valid password.Filenameaccess.cfgDefaultThere is no default.ExampleThe following directive specifies the order deny,allow and the Require directive for thisdirectory.In this command, the server first evaluates the Deny directive for the GET method,Internet Developers Toolkit for G A-12 © National Instruments CorporationAppendix A Configuration Directiveswhich denies all access to this directory.Then, the server evaluates the Allow directive, whichallows clients from.natinst.com to GET files from this directory.Finally, the serverevaluates the Require user authentication directive and allows only users named bob or usersin the group developers access to this directory.order deny,allowdeny from allallow from.natinst.comrequire user bobrequire group developersRefererThe Referer directive can be used to force users to enter a document from a specified pathinstead of jumping in at random.It allows the Webmaster to specify an exact match orwildcard expression to match the Referer: HTTP header.Refer to the OnDeny directive asa way to send the browser to the correct entry point.Note There is nothing to prevent a user from accessing the directory if they are able tomodify the Referer: header that is sent with their browser.ScopeYou can use this directive only within Limit sections.SyntaxThe Referer is a prefix to the standard Allow and Deny directives.referer deny from URLreferer allow from URLURL is a wildcard expression that specifies a URL.Filenameaccess.cfgDefaultThe default is to allow all Referer fields.© National Instruments Corporation A-13 Internet Developers Toolkit for GAppendix A Configuration DirectivesExampleThe following example limits users to entering this directory through the /test/ URLs.The* allows any port number or any directory beyond /test/.The OnDeny directive sends thebrowser to http://my.server.com/test/.order deny,allowdeny from allreferer allow from http://my.server.com:*/test/*OnDeny http://my.server.com/test/SatisfyThe Satisfy directive determines the access to a directory if you use both the Allow andRequire directives.ScopeYou can use this directive only within Limit sections.SyntaxSatisfy all | anyall specifies that the user must satisfy both the Allow and Require directives to gain accessto the directory.any specifies that the user must satisfy only one of the specified Allow or Require directives.Filenameaccess.cfgDefaultThe default is all.ExampleThe following directive restricts access for this directory to users from.natinst.com orusers named bob.In this command, the server first evaluates the Deny directive, which deniesall access to this directory.Next, the server evaluates the Allow directive, which allows clientsfrom.natinst.com to access files in this directory.Finally, the server evaluates the Satisfydirective, which allows access to any users from.natinst.com.If you do not meet theInternet Developers Toolkit for G A-14 © National Instruments CorporationAppendix A Configuration DirectivesSatisfy directive, the server requires user authentication and allows access only to usersnamed bob.order deny,allowdeny from allallow from.natinst.comrequire user bobsatisfy anyOnDenyThe OnDeny directive provides non-HTTP based access control to a directory.This directivesends a browser that fails the Limit directive to a specified URL.ScopeYou can use this directive only within Limit sections.SyntaxOnDeny URLURL is the URL you redirect the browser to.Filenameaccess.cfgDefaultThe default is to let the normal HTTP 401 response deal with the authentication failure.ExampleThe following directive redirects any user who connects from outside.natinst.com to theURL http://www.natinst.com/deny.htm:order deny,allowdeny from allallow from
[ Pobierz całość w formacie PDF ]