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.
@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
Merci Guillaume pour le Cache Purge cela fonctionne parfaitement.
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
@Mike : pas de plan pour l’inclusion de nginx_ajp_module pour le moment, dĂ©solĂ©.
snif … tant pis, je vais continuer Ă utiliser les sources … Merci pour la rĂ©ponse.
Hey Guillaume Plessis,
can we have secure link enabled by default?
Or this feature won’t got into dotdeb?
Thanks
@huglester : secure_link is enabled in nginx-extras
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
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!
@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.
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
would you mind including HttpChunkinModule in the package?
http://wiki.nginx.org/HttpChunkinModule
@Goto : HttpChunkinModule is already included in the nginx-extras package.