Nginx 1.0.12

February 7th, 2012 | by Guillaume Plessis |

Nginx 1.0.12 packages are now available for Debian 6.0 “Squeeze” on both amd64 and i386 architectures.

Here are the changes on the Dotdeb side :

  • Add the Cache purge module in nginx-full and nginx-extras
  • Use “default_server” instead of “default” in sites-available/default

Please take a look at Nginx’ Changelog before upgrading.

Tags: ,

  1. 15 Responses to “Nginx 1.0.12”

  2. By Halil on Feb 8, 2012 | Reply

    Not a blocker right now but I couldn’t get the default_site (i.e. by IP) to work. Previously I had:
    /etc/nginx/sites-available/default -> /etc/nginx/sites-enabled/default
    Now I have:
    /etc/nginx/sites-available/default_site -> /etc/nginx/sites-enabled/default_site
    But http://##.##.##.##/ doesn’t work. Note that I have:
    server {
    server_name _; #default
    return 444;
    }
    So that nothing is returned to undefined hosts.

  3. By Guillaume Plessis on Feb 8, 2012 | Reply

    @Halil : you don’t have to rename /etc/nginx/sites-enabled/default to anything else. That’s just the “default” options to the “listen” directive that should be renamed in your config files.

    More info : https://github.com/gplessis/dotdeb-nginx/issues/2

  4. By Pierre-Henry on Feb 13, 2012 | Reply

    Merci Guillaume pour le Cache Purge cela fonctionne parfaitement.

  5. By Mike on Feb 16, 2012 | Reply

    Bonjour.

    Merci pour ce package, mais pensez vous pouvoir ajouter le module ajp ? (https://github.com/yaoweibin/nginx_ajp_module)
    A cause de lui, je ne peux jamais utiliser de package pour nginx :(

    Mike

  6. By Guillaume Plessis on Feb 16, 2012 | Reply

    @Mike : pas de plan pour l’inclusion de nginx_ajp_module pour le moment, désolé.

  7. By Mike on Feb 16, 2012 | Reply

    snif … tant pis, je vais continuer à utiliser les sources … Merci pour la réponse.

  8. By huglester on Feb 18, 2012 | Reply

    Hey Guillaume Plessis,

    can we have secure link enabled by default?
    Or this feature won’t got into dotdeb?

    Thanks

  9. By Guillaume Plessis on Feb 19, 2012 | Reply

    @huglester : secure_link is enabled in nginx-extras

  10. By Arnaud Briche on Feb 19, 2012 | Reply

    L’inclusion du module tcp_proxy(https://github.com/yaoweibin/nginx_tcp_proxy_module) est-elle envisageable ?
    Ce module est nécessaire pour utiliser NGINX

  11. By Arnaud Briche on Feb 19, 2012 | Reply

    Dsl pour le commentaire précédent que je n’avais pas fini de rédiger.
    Ce module donc, est nécessaire pour utiliser NGINX comme proxy pour les websockets.
    Si son inclusion n’est pas envisager, pourriez-vous me préciser les étapes nécessaire à la recompilation du package NGINX de dotdeb pour y inclure ce module ?

  12. By huglester on Feb 23, 2012 | Reply

    Thanks @Guillaume Plessis,

    Now I see that 1.0.12 has the secure link in the extras. The problem is that earlier I have tried to install nginx-extras – but it did offer me to install passenger.. (and smth else, can’t remember).

    Or maybe you have changed something?

    Anyway – thanks!

  13. By Guillaume Plessis on Feb 23, 2012 | Reply

    @huglester : nginx-extras includes a lot of modules, including passenger. This leads to many Debian dependencies, but in terms of resources, you still can disable Passenger at runtime (it’s off by default).

    More info on nginx modules by flavours : https://docs.google.com/spreadsheet/ccc?key=0AjuNPnOoex7SdG5fUkhfc3BCSjJQbVVrQTg4UGU2YVE

    The secure-link module will be part of nginx-full in the future packages.

  14. By Brian on Feb 24, 2012 | Reply

    Could you update the init script to be clearer like this.

    #!/bin/bash

    ### BEGIN INIT INFO
    # Provides: nginx
    # Required-Start: $local_fs $remote_fs $network $syslog
    # Required-Stop: $local_fs $remote_fs $network $syslog
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: starts the nginx web server
    # Description: starts nginx using start-stop-daemon
    ### END INIT INFO

    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    DAEMON=/usr/sbin/nginx
    NAME=nginx
    DESC=nginx

    #================================
    #COLOR
    # Escape code
    esc=`echo -en “33″`
    # Set colors
    cc_red=”${esc}[0;31m"
    cc_green="${esc}[0;32m"
    cc_yellow="${esc}[0;33m"
    cc_blue="${esc}[0;34m"
    cc_normal=`echo -en "${esc}[m17"`
    #================================

    # Include nginx defaults if available
    if [ -f /etc/default/nginx ]; then
    . /etc/default/nginx
    fi

    test -x $DAEMON || exit 0

    set -e

    . /lib/lsb/init-functions

    test_nginx_config() {
    if $DAEMON -t $DAEMON_OPTS >/dev/null 2>&1; then
    return 0
    else
    echo ” [ ${cc_red}FAIL${cc_normal} ]”
    $DAEMON -t $DAEMON_OPTS
    return $?
    fi
    }

    case “$1″ in
    start)
    echo -n “Starting $DESC: ”
    test_nginx_config
    # Check if the ULIMIT is set in /etc/default/nginx
    if [ -n "$ULIMIT" ]; then
    # Set the ulimits
    ulimit $ULIMIT
    fi
    start-stop-daemon –start –quiet –pidfile /var/run/$NAME.pid \
    –exec $DAEMON — $DAEMON_OPTS || true
    echo ” [ ${cc_green}OK${cc_normal} ]”
    ;;

    stop)
    echo -n “Stopping $DESC: ”
    start-stop-daemon –stop –quiet –pidfile /var/run/$NAME.pid \
    –exec $DAEMON || true
    echo ” [ ${cc_green}OK${cc_normal} ]”
    ;;

    restart|force-reload)
    echo -n “Stopping $DESC: ”
    start-stop-daemon –stop –quiet –pidfile \
    /var/run/$NAME.pid –exec $DAEMON || true
    sleep 1
    echo ” [ ${cc_green}OK${cc_normal} ]”
    echo -n “Starting $DESC: ”
    test_nginx_config
    start-stop-daemon –start –quiet –pidfile \
    /var/run/$NAME.pid –exec $DAEMON — $DAEMON_OPTS || true
    echo ” [ ${cc_green}OK${cc_normal} ]”
    ;;

    reload)
    echo -n “Reloading $DESC configuration: ”
    test_nginx_config
    start-stop-daemon –stop –signal HUP –quiet –pidfile /var/run/$NAME.pid \
    –exec $DAEMON || true
    echo ” [ ${cc_green}OK${cc_normal} ]”
    ;;

    configtest|testconfig)
    echo -n “Testing $DESC configuration: ”
    if test_nginx_config; then
    echo ” [ ${cc_green}OK${cc_normal} ]”
    else
    echo ” [ ${cc_red}FAIL${cc_normal} ]”
    exit $?
    fi
    ;;

    status)
    status_of_proc -p /var/run/$NAME.pid “$DAEMON” nginx && exit 0 || exit $?
    ;;
    *)
    echo “Usage: $NAME {start|stop|restart|reload|force-reload|status|configtest}” >&2
    exit 1
    ;;
    esac

    exit 0

  15. By Goro on Mar 3, 2012 | Reply

    would you mind including HttpChunkinModule in the package?

    http://wiki.nginx.org/HttpChunkinModule

  16. By Guillaume Plessis on Mar 5, 2012 | Reply

    @Goto : HttpChunkinModule is already included in the nginx-extras package.

Post a Comment