Authentication and Authorization Enforcement
8-8
Oracle HTTP Server Administrator’s Guide
Controlling Access with Environment Variables
You can use arbitrary environment
variables for access control, instead of using IP addresses or domain names. Use
BrowserMatch
and
SetEnvIf
directives for this type of access control.
Use
BrowserMatch
when you want to base access on the type of browser used to
send a request. For instance, if you want to allow access only to requests that come
from a Netscape browser, then use the syntax shown in
Example 8–6
:
Example 8–6
Controlling Access with Environment Variables
BrowserMatch ^Mozilla netscape_browser
<Directory /mozilla-area/>
order deny,allow
deny from all
allow from env=netscape_browser
</Directory>
Use
SetEnvIf
when you want to base access on header information contained in
the HTTP request. For instance, if you want to deny access from any browsers using
HTTP version 1.0 or earlier, then use the syntax shown in
Example 8–7
:
Example 8–7
Controlling Access with SetEnv
SetEnvIf Request_Protocol ^HTTP/1.1 http_11_ok
<Directory /http1.1only/>
order deny,allow
deny from all
allow from env=http_11_ok
</Directory>
Note:
Typically,
BrowserMatch
and
SetEnvIf
are not used to
implement security policies. Instead they are used to provide
different handling of requests based on browser types and versions.
See Also:
"Scope of Directives"
on page 2-4
Содержание HTTP Server
Страница 1: ...Oracle HTTP Server Administrator s Guide 10g Release 1 10 1 Part No B12255 01 December 2003 ...
Страница 12: ...xii ...
Страница 22: ...xxii ...
Страница 30: ...Starting Stopping and Restarting Oracle HTTP Server 1 8 Oracle HTTP Server Administrator s Guide ...
Страница 38: ...About htaccess Files 2 8 Oracle HTTP Server Administrator s Guide ...
Страница 52: ...Getting Information about Processes 4 8 Oracle HTTP Server Administrator s Guide ...
Страница 60: ...Configuring Reverse Proxies and Load Balancers 5 8 Oracle HTTP Server Administrator s Guide ...
Страница 70: ...Specifying Log Files 6 10 Oracle HTTP Server Administrator s Guide ...
Страница 164: ...Security Services Implemented Within Oracle HTTP Server 8 34 Oracle HTTP Server Administrator s Guide ...
Страница 170: ...9 6 Oracle HTTP Server Administrator s Guide ...
Страница 178: ...opmn xml A 8 Oracle HTTP Server Administrator s Guide ...
Страница 211: ...Glossary 9 X 509 Public keys can be formed in various data formats The X 509 v3 format is one such popular format ...
Страница 212: ...Glossary 10 ...
Страница 224: ...Index 12 ...