Categories
Nginx

Nginx 1.0.12

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.

15 replies on “Nginx 1.0.12”

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.

Hey Guillaume Plessis,

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

Thanks

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 ?

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!

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

Comments are closed.