new post: compile nginx
This commit is contained in:
parent
4cf7f1eaab
commit
83eefb2afc
34
_posts/2011-09-02-compile-nginx.markdown
Normal file
34
_posts/2011-09-02-compile-nginx.markdown
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: compile nginx
|
||||||
|
---
|
||||||
|
|
||||||
|
I'm using [nginx][] as my main webserver and proxy for all my other projects (let it be node.js or ruby things).
|
||||||
|
|
||||||
|
Now that [ipv6][] is more and more used, I decided to let this blog get served over ipv6 as well.
|
||||||
|
|
||||||
|
Get nginx' latest version (1.0.6 at this time) from their [downloads section][download].
|
||||||
|
To compile nginx with ipv6 support all you need to do is let `configure` know about this (last line):
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr/local \
|
||||||
|
--with-http_ssl_module \
|
||||||
|
--with-http_realip_module \
|
||||||
|
--with-http_gzip_static_module \
|
||||||
|
--with-ipv6
|
||||||
|
|
||||||
|
Then compile and install it:
|
||||||
|
|
||||||
|
make
|
||||||
|
su -c 'make install'
|
||||||
|
|
||||||
|
Add this line to your nginx.conf:
|
||||||
|
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
Restart your server and it just works.
|
||||||
|
|
||||||
|
|
||||||
|
[nginx]: http://nginx.org/en/
|
||||||
|
[download]: http://nginx.org/en/download.html
|
||||||
|
[ipv6]: http://en.wikipedia.org/wiki/Ipv6
|
Loading…
Reference in a new issue