Category: Uncategorized

  • How to gracefully restart lighttpd

    Gracefully here meaning without loosing any request which is in processing (request which are not accepted yet might still be rejected) Send SIGINT to lighttpd and then start new instance of it – the one received INT will stop listening for new connections but it will finish all connections it already accepted and exit after…

  • RabbitMQ start with FreeBSD

    1. Install erlang from ports2. grab latest binary tar.gz package from their website download session (file name should be something like rabbitmq-server-generic-unix-X.Y.Z.tar.gz) – unpack it somewhere3. start server from the directory where you unpack it sbin/rabbitmq-server4. when you need to stop it run sbin/rabbitmqctl stop It is also possible to compile it directly from source,…

  • .htaccess based authentication with apache

    Put this in .htaccess file AuthUserFile path_goes_hereAuthGroupFile /dev/nullAuthName EnterPasswordAuthType Basicrequire valid-user File with usernames and passwords can be generated with htpasswd path username utility from command line, or use the following line to display hashed pairs in console htpasswd -n username