comparison xml/en/docs/http/ngx_http_core_module.xml @ 69:935beaa561b3

- use of $document_root and $realpath_root in "root" is prohibited - "satisfy" can be specified in the "http" and "server" contexts; "satisfy all" behavior is cleared - "sendfile" can be specified in the "if in location" context
author Ruslan Ermilov <ru@nginx.com>
date Sun, 09 Oct 2011 18:01:18 +0000
parents 9de85defbcf8
children 272d99af0c15
comparison
equal deleted inserted replaced
68:9de85defbcf8 69:935beaa561b3
1526 with the file 1526 with the file
1527 <dq><pathname>/data/w3/i/top.gif</pathname></dq>. 1527 <dq><pathname>/data/w3/i/top.gif</pathname></dq>.
1528 </para> 1528 </para>
1529 1529
1530 <para> 1530 <para>
1531 The <argument>path</argument> value can contain variables. 1531 The <argument>path</argument> value can contain variables
1532 except <var>$document_root</var> and <var>$realpath_root</var>.
1532 </para> 1533 </para>
1533 1534
1534 <para> 1535 <para>
1535 A path to the file is constructed by merely adding a URI to the value 1536 A path to the file is constructed by merely adding a URI to the value
1536 of the <code>root</code> directive. 1537 of the <code>root</code> directive.
1542 1543
1543 1544
1544 <directive name="satisfy"> 1545 <directive name="satisfy">
1545 <syntax>satisfy <value>all</value> | <value>any</value></syntax> 1546 <syntax>satisfy <value>all</value> | <value>any</value></syntax>
1546 <default>satisfy all</default> 1547 <default>satisfy all</default>
1547 <context>location</context> 1548 <context>http</context>
1548 1549 <context>server</context>
1549 <para> 1550 <context>location</context>
1550 Allows access if any of the 1551
1552 <para>
1553 Allows access if <value>all</value> or <value>any</value> of the
1551 <link doc="ngx_http_access_module.xml">ngx_http_access_module</link> 1554 <link doc="ngx_http_access_module.xml">ngx_http_access_module</link>
1552 or <link doc="ngx_http_auth_basic_module.xml">ngx_http_auth_basic_module</link> 1555 or <link doc="ngx_http_auth_basic_module.xml">ngx_http_auth_basic_module</link>
1553 modules grant access. 1556 modules grant access.
1554 <example> 1557 <example>
1555 location / { 1558 location / {
1568 1571
1569 1572
1570 <directive name="satisfy_any"> 1573 <directive name="satisfy_any">
1571 <syntax>satisfy_any <value>on</value> | <value>off</value></syntax> 1574 <syntax>satisfy_any <value>on</value> | <value>off</value></syntax>
1572 <default>satisfy_any off</default> 1575 <default>satisfy_any off</default>
1573 <context>location</context> 1576 <context>http</context>
1574 1577 <context>server</context>
1575 <para> 1578 <context>location</context>
1576 This directive was renamed to the <link id="satisfy">satisfy</link> directive. 1579
1580 <para>
1581 This directive was renamed to the <link id="satisfy">satisfy any</link>
1582 directive.
1577 </para> 1583 </para>
1578 1584
1579 </directive> 1585 </directive>
1580 1586
1581 1587
1602 <syntax>sendfile <value>on</value> | <value>off</value></syntax> 1608 <syntax>sendfile <value>on</value> | <value>off</value></syntax>
1603 <default>sendfile off</default> 1609 <default>sendfile off</default>
1604 <context>http</context> 1610 <context>http</context>
1605 <context>server</context> 1611 <context>server</context>
1606 <context>location</context> 1612 <context>location</context>
1613 <context>if in location</context>
1607 1614
1608 <para> 1615 <para>
1609 Enables or disables the use of 1616 Enables or disables the use of
1610 <c-func>sendfile</c-func>. 1617 <c-func>sendfile</c-func>.
1611 </para> 1618 </para>