I installed the latest version of nginx (1.0.15) using apt-get from the source listed here: http://nginx.org/en/download.html.
For some reason, nginx isn't starting up automatically when I reboot the server, as I believe it should. /etc/init.d/nginx exists so I can start/stop/restart manually, but any ideas on why it isn't starting automatically? I was under the impression it should right out of the box if installed via apt-get.
Thanks.
Edit: After looking at various logs, I discovered that nginx wasn't starting on startup because I had an ssl server set up without a certificate (haven't added the certificate yet because I haven't yet migrated the domain). Commenting out the ssl server appears to have solved the problem. I presume that when I'm ready to add the certs for the domain the problem won't reappaer - here's hoping :).
As an aside, I was also experiencing a problem that the change above seems to have solved. I have Options -Indexes set in Apache to prevent directory browsing, and for most directory paths I would get the "Forbidden" message from Apache. For some, however, if I omitted the trailing slash in the path, the server wouldn't respond with the Forbidden message, or any message at all. I thought I must have some setting in nginx or apache2 that was causing this, but couldn't identify one. Now the problem has disappeared with the above change. Can't explain it.