Require librabbitmq from rabbit-c:
https://github.com/alanxz/rabbitmq-c
- Install rabbit-c driver from above link.
- Download nginx from http://nginx.org/en/download.html
- Unzip file and use following command
./configure --add-module=/path/to/nginx/amqp
make
sudo make - Use "location /test{ ... }" part from above nginx.conf (which should be put in /usr/local/nginx/conf/)
========== You may need to declare exchange and queue first.