Nginx-0.7.15

Changes with nginx 0.7.15 08 Sep
2008

*) Feature: the ngx_http_random_index_module.

*) Feature: the "directio" directive has been optimized for file
   requests starting from arbitrary position.

*) Feature: the "directio" directive turns off sendfile if it is
   necessary.

*) Feature: now nginx allows underscores in a client request header
   line names.

On Mon, Sep 8, 2008 at 1:40 AM, Igor S. [email protected] wrote:

Changes with nginx 0.7.15 08 Sep 2008

*) Feature: the ngx_http_random_index_module.

What does this do?

On 08.09.2008 22:40, mike wrote:

On Mon, Sep 8, 2008 at 1:40 AM, Igor S. [email protected] wrote:

Changes with nginx 0.7.15 08 Sep 2008

*) Feature: the ngx_http_random_index_module.

What does this do?

select random file from directory.

Example:

location / {
root /path/to/dir_with_files;
random_index on;
}

On Mon, Sep 8, 2008 at 12:33 PM, Anton Y. [email protected]
wrote:

select random file from directory.

Example:

location / {
root /path/to/dir_with_files;
random_index on;
}

Can it be any filename? or does it have to be prefixed with “index”?

Does it have a maximum amount of files it can handle?

On Mon, Sep 08, 2008 at 12:38:12PM -0700, mike wrote:

Can it be any filename? or does it have to be prefixed with “index”?

Any file.

Does it have a maximum amount of files it can handle?

No, there is no limit.

On Mon, Sep 08, 2008 at 11:33:15PM +0400, Anton Y. wrote:

select random file from directory.

… as directory index. I.e. it works for /dir/ type requests only.
It does not handle /dir/page.html requests.