Go to file
Adrian Perez 9e935e7d23 - Added configuration commands for header and footer files, and for their
inclusion inside <pre> tags.
- Code which handles the merging of the header/footer settings.
- Updated documentation in README.rst
2007-08-20 21:27:49 +02:00
README.rst - Added configuration commands for header and footer files, and for their 2007-08-20 21:27:49 +02:00
config initial infraestructure 2007-08-20 19:17:56 +02:00
ngx_http_fancyindex_module.c - Added configuration commands for header and footer files, and for their 2007-08-20 21:27:49 +02:00

README.rst

=========================
Nginx_ Fancy Index module
=========================

Requirements
============
* Sources for Nginx_ 0.6.6, and its requirements.
* Patience, and some Coffee™.


Building
========

1. Unpack the Nginx_ sources::

    $ gunzip -c nginx-0.6.6.tar.gz | tar -xvf -

2. Unpack the sources for the fancy indexing module::

    $ gunzip -c nginx-fancyindex-?.?.?.tar.gz | tar -xvf -

3. Change to the directory which contains the Nginx_ sources, run the
   configuration script with the desired options and be sure to put an
   ``--add-module`` flag pointing to the directory which contains the source
   of the fancy indexing module::

    $ cd nginx-0.6.6
    $ ./configure --add-module=../nginx-?.?.?  [extra desired options]

4. Build and install the software::

    $ make
  
   And then, as ``root``::

    # make install

5. Configure Nginx_ by using the modules' configuration directives_.


Directives
==========

:Syntax: *fancyindex* [*on* | *off*]
:Default: fancyindex off
:Context: http, server, location
:Description:
  Enables or disables fancy directory indexes.

:Syntax: *fancyindex_localtime* [*on* | *off*]
:Default: fancyindex_localtime off
:Context: http, server, location
:Description:
  Defines how to represent file sizes in the directory listing; either
  accurately, or rounding off to the kilobyte, the megabyte and the
  gigabyte.

:Syntax: *fancyindex_exact_size* [*on* | *off*]
:Default: fancyindex_exact_size on
:Context: http, server, location
:Description:
  Enables showing file times as local time. Default is “off” (GMT time).

:Syntax: *fancyindex_header path*
:Default: fancyindex_header ""
:Context: http, server, location
:Description:
  Specifies which file should be inserted at the head of directory listings.
  If set to an empty string, the default header supplied by the module will
  be sent.

:Syntax: *fancyindex_header_pre* [*on* | *off*]
:Default: fancyindex_header_pre on
:Context: http, server, location
:Description:
  Wrap contents of the file being sent as header in a ``<pre>`` element,
  after the module's own header. This is suitable for including
  preformatting text.

:Syntax: *fancyindex_footer path*
:Default: fancyindex_footer ""
:Context: http, server, location
:Description:
  Specifies which file should be inserted at the foot of directory listings.
  If set to an empty string, the default footer supplied by the module will
  be sent.

:Syntax: *fancyindex_footer_pre* [*on* | *off*]
:Default: fancyindex_footer_pre on
:Context: http, server, location
:Description:
  Wrap contents of the file being sent as footer in a ``<pre>`` element,
  after the module's own header. This is suitable for including
  preformatting text.

.. _nginx: http://nginx.net

.. vim:ft=rst:spell:spelllang=en: