NGinx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Currently Ruby Stack includes this server already configured.
How to start the Nginx server?
You can find the Nginx server in your installation directory. If you are using the Virtual Machine or the Cloud Image check the /opt/bitnami folder.
This server is disabled by default. If you want to start it, you can simply rename the "ctl.sh.disabled" script:
$ cd installdir $ mv nginx/scripts/ctl.sh.disabled nginx/scripts/ctl.sh
By default, Nginx will be started at the 1234 port. Check http://localhost:4321 in your browser to see the Nginx welcome page.
How to configure Nginx?
The default configuration file for Nginx is the installdir/nginx/conf/nginx.conf file. You can change the port in the "listen" option:
How to debug errors?
Check the exact error in the Nginx log file: "installdir/nginx/log/error.log". If you have configured Nginx to use a privileged port (< 1024) check that the Nginx user is "daemon" in the configuration file. This user should also has write privileges in the log folder.