Re:Nginx-1.4.0 stable version has been released
by fourstar on Wednesday April 24, 2013 @12:04PM
(#5602228)
I've always used Apache but I really want to use nginx for my next project (it's a Node/express app). How should I start? It'll be running on my Ubuntu VPS. Any tips, suggestions, common pitfalls?
[ Parent
| on HN ]
Re:Nginx-1.4.0 stable version has been released
by Osiris on Wednesday April 24, 2013 @12:07PM
(#5602239)
The only pitfall that I've run into is converting Apache rewrite rules (htaccess) files and getting that into the nginx configuration file.
For sure, the configuration file format is different, but it's not terribly complicated.
Re:Nginx-1.4.0 stable version has been released
by ceejayoz on Wednesday April 24, 2013 @01:23PM
(#5602719)
Once you get used to it, it's a lot nicer to work with, too.
Re:Nginx-1.4.0 stable version has been released
by drazion on Wednesday April 24, 2013 @03:19PM
(#5603391)
I whole heartedly agree - htaccess and virtual host rules were such a pain in Apache, I've really come to appreciate how easy it was to get nginx setup in comparison.
Re:Nginx-1.4.0 stable version has been released
by lgbr on Wednesday April 24, 2013 @12:13PM
(#5602280)
There's really not that much to it. Use nginx that comes from APT and use a unix socket to communicate between node and nginx.
I use this code to open a unix socket in production at tmp/socket : https://gist.github.com/lgbr/5453355
And use a configuration like this for nginx (replace /etc/nginx/sites-available/default with this): https://gist.github.com/lgbr/5453375
Re:Nginx-1.4.0 stable version has been released
by mixmastamyk on Wednesday April 24, 2013 @12:31PM
(#5602387)
sudo apt-get install nginx
$BROWSER http://wiki.nginx.org/Configuration
$EDITOR /etc/nginx/nginx.conf
man nginx
man upstart
sudo start nginx
$BROWSER http://localhost:$PORT/
Re:Nginx-1.4.0 stable version has been released
by spindritf on Wednesday April 24, 2013 @01:13PM
(#5602648)
> sudo apt-get install nginx
If you want the newest version, nginx has their own deb repository[1]. It seems to get security updates faster, too.
[1] http://wiki.nginx.org/Install#Official_Debian.2FUbuntu_packa...
EDIT: Not the PPA because it's "maintained by volunteers and is not distributed by nginx.org." Their repository:
deb http://nginx.org/packages/ubuntu/ yourOScodename nginx
Re:Nginx-1.4.0 stable version has been released
by mixmastamyk on Wednesday April 24, 2013 @01:37PM
(#5602822)
I was using a ppa at one point, but reverted when the distro packaged a new enough version.
Re:Nginx-1.4.0 stable version has been released
by olouv on Wednesday April 24, 2013 @01:18PM
(#5602674)
This was really helpful to me: https://github.com/h5bp/server-configs/tree/master/nginx