Live data from Hacker News

Nginx for Developers: An Introduction

carrot.is

61–70 of 142 posts

Re: Nginx for Developers: An Introduction

#61

Good article. Be wary of the well documented zero-day exploits if you're using php. This is one of my other favorite articles: http://docs.ngx.cc/en/latest/topics/tutorials/config_pitfall... Some good introductory stuff here as well: http://pineapple.io/resources/tagged/nginx

How can a zero-day be well documented? By definition it's not yet public.

Re: Nginx for Developers: An Introduction

#62
If 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 Z.

Re: Nginx for Developers: An Introduction

#63
post #61

Good article. Be wary of the well documented zero-day exploits if you're using php. This is one of my other favorite articles: http://docs.ngx.cc/en/latest/topics/tutorials/config_pitfall... Some good introductory stuff here as well: http://pineapple.io/resources/tagged/nginx

How can a zero-day be well documented? By definition it's not yet public.

It sounds scarier than saying: "If you use PHP, remember to set the following in your .ini"

    cgi.fix_pathinfo = 0

Re: Nginx for Developers: An Introduction

#64

If 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…

Awesome, thanks @sergiotapia!

Re: Nginx for Developers: An Introduction

#65
post #49

I 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

#66

It'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

#67

This article is just fine for IDE-side development, but I would not recommend for anyone to use the version of nginx in the standard Ubuntu package manager. It traditionally is several version back missing important key features that you might want to take advantage of.

Generally, it's installed using apt, but from a source maintained by nginx. It's just a quick modification of sources.list.

http://nginx.org/en/linux_packages.html#stable

Re: Nginx for Developers: An Introduction

#68
post #63
post #61

Earlier quoted context omitted.

How can a zero-day be well documented? By definition it's not yet public.

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

#70
post #49

I 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)

Wouldn't it be kind of trivial to right a function to would take a directory name as a parameter and symlink it from site-available to site-enabled?
Post reply on HN