Merge in 1.6.2-4 from upstream.

commit b69b26d362172a62a5c9fc85e4d5c25ef0cf29ea
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Sun Oct 19 08:24:13 2014 +0300

    Release 1.6.2-4

commit 39c9401f342fd82db34658e07370e61e4a854286
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Fri Oct 17 15:01:32 2014 +0300

    Switch postrotate to the initscript's rotate command

commit 7dbafe0f5edb58acb7bb23de2f13ae48156560ab
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 16 16:41:03 2014 +0300

    Rewrite debian/copyright

    Copyright file was not up-to-date and had some minor errors that needed
    to be fixed.

commit 96646a8d62806ed28211f42c700fd55dc4815c5d
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 16 15:58:42 2014 +0300

    Update ngx-fancy-index to 0.3.4

commit ff1999cfeeed7d335e005481943c37db2c5d7414
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 16 16:01:02 2014 +0300

    nginx-upload-progress: Remove not needed binary file

    There is no need to add an override for that one.

commit f343d86c94aeac40f4c336ae478a917ffea0e017
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 16 15:56:00 2014 +0300

    Update nginx-upload-progress to v0.9.1

commit de47cfc46cd76aad4b6fc5793a1faa122f46f765
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 16 15:53:10 2014 +0300

    Update nginx-echo to v0.56

commit 0ca74c0172fd3f541c128951e13313e44fcb3be8
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 16 15:49:10 2014 +0300

    Update nginx-development-kit to v0.2.19

commit f7b933b45c8cc1ffae2e664bbfd4e10980908a16
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 16 13:34:40 2014 +0300

    Release 1.6.2-3

commit d97018fe9e5770e5d6e56a15adda0de21777ac30
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 16 12:03:57 2014 +0300

    Remove attribution note to Tyler Riddle per his request

    Tyler doesn't agree with the applied patch.

commit 9a4e0f0a698bee2b03b7f417ad9286e5eb22141e
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 16 12:03:02 2014 +0300

    Suggest disabling SSLv3 in default site

commit 32baa8bd2a64c7c73844b5bccdaec1257763d586
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Mon Oct 13 10:34:53 2014 +0300

    Add a changelog entry about the ssl snakeoil snippet

commit c15f391783aaea82b529c2bd87e5b6697b62c3ea
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Tue Oct 7 13:03:55 2014 +0300

    Introduce a php-fastcgi snippet

    Now uncommenting the php comments in the default site
    results in a functional php setup, closes #762491.

commit 3e7b102360f27be4fb6c23248722ef6b69ee4535
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 2 12:39:22 2014 +0300

    initscript: gracefully stop nginx by default

    Following the previous commit, we sync the initscript with the
    systemd.service file. We now give nginx 10 secs to gracefully stop
    before force stopping it.

    Also we introduce a STOP_SCHEDULE variable to make this configurable.

commit caee1c2a8790f3f5ad1e8f277d0426189a43558f
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 2 16:05:06 2014 +0300

    Fix systemd graceful stopping issue

    The ExecStop stop command sends a SIGSTOP signal to the master process
    that triggers the graceful-stop sequence.

    The bug was that, when ExecStop exits and the process is still running,
    systemd thinks that the command failed and sends a SIGTERM (force
    stop for nginx) to all the processes in the process group. The command
    used exited immediately so the SIGSTOP was followed by a SIGTERM
    effectively canceling the graceful stop sequence.

    We now use start-stop-deamon as the ExecStop command that waits for
    5 secs before exiting.

    So, after this fix, the stop sequence becomes:
    STOP/5  (=> master)
    TERM/5  (=> master)
    KILL    (=> process group)

commit c6a5177c864ec21fc82b27651a2cf91c94e78eed
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 9 16:47:57 2014 +0300

    snakeoil snippet

commit 5bfd6725302e9c439d7da9e80ebc70e6c39f79cd
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 9 16:19:59 2014 +0300

    Merge https configuration example into the default server

    We also use the cert/key path of the snakeoil certs that are installed
    by the ssl-cert package.

    ssl-cert is added to suggested packages.

commit 715b7086fa5e219be9a983adfc18336db5efd8ad
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Tue Oct 7 14:03:35 2014 +0300

    Revamp default site configuration

     * Remove ipv6only=on, it's on by default
     * Remove error pages derective, keep things simple
     * Use _ as the catch all server_name (nginx idiom)
     * Provide a simpler virtual host configuration

commit 776f6a7e52ddc172946df73871dd5b874b11f1c5
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Oct 9 16:36:09 2014 +0300

    Fix a few more issues with the new document root

     * Bump debian policy to 3.9.6.0
     * Override lintian dir-or-file-in-var-www error.
       /var/www/html is the new document root and should be create by the
       nginx-common package.
     * Move the default page to index.nginx-debian.html and make
       the index directive for the default site fallback to that location.
       Seems like a cleaner approach.

commit 74531a5070ac96a5e3c75bec2a19871c65e07446
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Mon Sep 22 16:07:00 2014 +0300

    Change default document root and provide a new default page

commit 2e1fbae91510786c4fdadd8dbc22d6fd8407316f
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Fri Sep 26 11:06:57 2014 +0300

    Release 1.6.2-2

commit 1b31986abea715f9049d51ac51d0ff0b79cdc04c
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Sep 25 15:06:18 2014 +0300

    Remove passenger stanga and switch worker_processes to auto

commit bcb7334d867e9bb5d7bd6f1d7775e92b6900a219
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Fri Sep 12 13:01:39 2014 +0300

    Handle nginx related config files shipped with nginx-common

commit 80cda88b413dbb94c2b98806dd075e7206322f46
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Fri Sep 12 12:24:00 2014 +0300

    Drop nginx-naxsi packages

    Removing everything naxsi related from debian/

    We have decided to remove the nginx-naxsi packages before jessie is
    freezed.

    Packaging naxsi is not trivial and, unfortunately, none of the
    maintainers uses it. That's the reason nginx-naxsi is not in a good
    shape and we are not feeling comfortable to release and support it.

commit 52f6e1871aefd744c0a204742092aade0af0fd6c
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Fri Sep 12 12:17:26 2014 +0300

    Remove naxsi module from debian/modules

    nginx-naxsi is going to be dropped.

commit 510ec78adf402dcc4ca4d4bd46fbd0267d9eb1cd
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Sep 17 11:19:18 2014 +0300

    Release 1.6.2-1

commit 8dd9a27e64bfb52b20df288dbb7cb646cbc8e9e7
Merge: 422d550 f7b92fb
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Sep 17 11:16:24 2014 +0300

    Merge tag 'upstream/1.6.2'

    Upstream version 1.6.2

    # gpg: Signature made Wed 17 Sep 2014 11:16:19 AM EEST
    # gpg:                using RSA key 0x11362600A747ECD9
    # gpg: Good signature from "Christos Trochalakis <yatiohi@ideopolis.gr>"
    # gpg:                 aka "Christos Trochalakis <yatiohi@gmail.com>"

commit f7b92fb08646fc697c854ac9061be29bbefca16e
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Sep 17 11:16:18 2014 +0300

    Imported Upstream version 1.6.2

commit 422d5505c98e5eefcd262a24ffc659739ba01395
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Sep 4 13:00:54 2014 +0300

    Release 1.6.1-2

commit 5fcb02f279ae9194fc4d25e8b2b8fe3b5ee81a53
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Sep 4 09:56:56 2014 +0300

    Update http_push module to 0.73, closes #745921

    Fixes fd leak on reload.

commit c2007ef12b73fcc2f87c045fc15c521efcbd97b2
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Sep 4 09:51:18 2014 +0300

    Update nginx-lua version in README.Modules-versions

commit 0aaa29671f3ce524106746ff059f50ac41e3c7f9
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Tue Sep 2 15:14:41 2014 +0300

    Add some simple autopkgtests

commit 1f210f7fce421f14b09814ca567b766b48aaac86
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Sep 3 10:29:05 2014 +0300

    Update nginx-lua module to v0.9.12

commit 975eaa86b2a212da7789b510e3ad8fdd9e0c8f16
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Aug 28 15:31:54 2014 +0300

    Add a NEWS entry describing the config file changes

commit 27741525262197a5cad85e4412b25cf074544e7d
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Aug 28 12:43:40 2014 +0300

    Sync fastcgi configuration files with upstream nginx, closes #718639

    A NEWS entry will follow with more information.

    Since we are also changing whitespace, it make more sense to view the
    log with -w (--ignore-all-space) parameter.

commit ce2293e11ab7f062906355f69a2961e6445e8053
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Aug 28 15:28:32 2014 +0300

    Sync koi-utf,kow-win,scgi_params,uwsgi_params with upstream

    A NEWS entry will follow with more information.

    Since we are also changing whitespace, it make more sense to view the
    log with -w (--ignore-all-space) parameter.

commit 7e92bc37db325e312298449ff06b81221482a1de
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Thu Aug 28 12:38:22 2014 +0300

    Add changelog entry for naxsi module order

commit 8b518be817ac7a9068e8e89de2882b96a2dffc14
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Aug 27 17:24:56 2014 +0300

    Compile naxsi as the first nginx module, closes #758642

    This is important according to the naxsi installation docs:
    https://github.com/nbs-system/naxsi/wiki/installation

commit 56f5ab3b7dc7243370fdae8ff57165fd7932f2c3
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Aug 27 17:04:31 2014 +0300

    Upgrade to the latest mime.types

    Notice that now nginx uses "application/javascript" for js
    files. The `gzip_types` proposed directive has been updated to reflect
    that.

commit b4d1fd4a4ed56f487776adefcc843a031b2a7fbd
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Aug 27 16:31:29 2014 +0300

    Better pidfile extraction from nginx.conf, closes #747329

commit bfa477957be2b1e60a97877c0354074221e6a4a2
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Aug 27 15:02:12 2014 +0300

    Update nginx-lua module to v0.9.11

commit acf4dfca730937de36c66bd205271aec4770d5fc
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Aug 27 14:34:55 2014 +0300

    Build nginx-extras against luajit, #755875

commit 793a370c66fdfdfb5506a6a9b6fbdd1b1066b53e
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Aug 6 10:05:18 2014 +0300

    Release 1.6.1-1

commit 63a48d01ff08631d9bd446bbfb0379aa2262223a
Merge: cc1d34b 4f63260
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Aug 6 09:41:39 2014 +0300

    Merge tag 'upstream/1.6.1'

    Upstream version 1.6.1

    # gpg: Signature made Wed 06 Aug 2014 09:41:33 AM EEST
    # gpg:                using RSA key 0x11362600A747ECD9
    # gpg: Good signature from "Christos Trochalakis <yatiohi@ideopolis.gr>"
    # gpg:                 aka "Christos Trochalakis <yatiohi@gmail.com>"

commit 4f63260faf8395e0fefcf060e2eb56a5cb3ced93
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Aug 6 09:41:32 2014 +0300

    Imported Upstream version 1.6.1

commit 822eb60b281271b1d04e9b95807b4c5ad839b22a
Author: Christos Trochalakis <yatiohi@ideopolis.gr>
Date:   Wed Aug 6 09:36:39 2014 +0300

    Imported Upstream version 1.6.1

commit cc1d34ba57564330abf8b49577c1ce5f1ea28821
Author: Kartik Mistry <kartik.mistry@gmail.com>
Date:   Tue Jul 29 09:06:18 2014 +0000

    Make nginx-extras.install executable

commit d5c6dc62bcaefd82ce6211b1cea545f32ed45ab6
Author: Kartik Mistry <kartik.mistry@gmail.com>
Date:   Tue Jul 29 04:56:31 2014 +0000

    Added patch for #752796