In the example given "listen 80;" is completely unnecessary since it's a default.
Nginx for Developers: An Introduction
71–80 of 142 posts
Re: Nginx for Developers: An Introduction
#72If you like this article, I wrote a similar one called Devops for Dummies. http://tech.pro/tutorial/1335/devops-for-dummies-vps-configu... It teaches you how to setup a DigitalOcean (or any other) VPS from scratch to host N amount of Rails applications using Nginx and Passenger. It took me some time to get things working properly and I distilled it into this short article that holds your hand and takes you from A to…
Re: Nginx for Developers: An Introduction
#73Earlier quoted context omitted.
It sounds scarier than saying: "If you use PHP, remember to set the following in your .ini" cgi.fix_pathinfo = 0
So not zero day and not an exploit. A terrible idea for a feature though, PHP seems to be rich with those.
Re: Nginx for Developers: An Introduction
#74I like just keeping a single "etc/nginx/sites" folder, including "sites/*.ON" in my main nginx.conf and then appending .ON to the sites that are enabled: active.site.com.ON another.active.com.ON not.active.com
That's clever. Coming from Apache I was disappointed not to see something equivalent to: a2ensite (site)
Re: Nginx for Developers: An Introduction
#75It's kinda depressing that this article is basically just a copy of one I wrote in 2010 and it's still something that gets attention as interesting stuff. Nginx documentation obviously still has a long way to go.
I've actually had your article bookmarked for some time. I got it from the nginx wiki page at http://wiki.nginx.org/Configuration . I was more surprised than depressed about the upvotes for the current article. It really makes me wonder if the technical level of the audience here hasn't declined substantially. The current article is well written but it's aimed at a "Dummies" rather than developer level.
Re: Nginx for Developers: An Introduction
#76I have literally never heard anyone call it that.
Re: Nginx for Developers: An Introduction
#77If you like this article, I wrote a similar one called Devops for Dummies. http://tech.pro/tutorial/1335/devops-for-dummies-vps-configu... It teaches you how to setup a DigitalOcean (or any other) VPS from scratch to host N amount of Rails applications using Nginx and Passenger. It took me some time to get things working properly and I distilled it into this short article that holds your hand and takes you from A to…
Your current instructions are predicated on success. By verifying your new user login and sudo capability before logging out as root (rebooting), you can fix typos or other Bad Things. Not that I would ever make a typo while editing sudoers. ;-)
Re: Nginx for Developers: An Introduction
#78Completely off-topic: Is that a custom WP theme? I love the look and feel of this article. On-topic: Thank you for this. I am going to purchase a DO box this weekend and play around with nginx instead of apache. For some reason when I last tried to use nginx, I could not get location {} to work. Granted it was some time ago. Does anyone have any resources on nginx as a load balancer?
Avoid using Digital Ocean(DO). We had very very bad experience with them, file-system corruption, hardware failures. And we are still unable to recover all our data. And so far, no hope! They don't answer any of the questions properly, my team is very upset. We felt, they don't have much technical expertise in managing servers. DO might be okay for testing and learning, but never use them for any production setups. U…
Just because you didn't perform backups, it doesn't mean that you should blame the host.
Even the best-of-the-best hosts will fail, but thing to consider is how fast can they resolve issues and are they proactively trying to improve.
Re: Nginx for Developers: An Introduction
#79I think the sites-available is a debianism, not present on all distros. One nice thing that nginx supports is include directives with wildcards so you can e.g. have /srv/example.com/nginx.conf and /srv/api.example.com/nginx.conf and include them in the main configuration file with include /srv/*/nginx.conf.
I ran into a version of Nginx on CentOS had sites-avail/enabled.