Skip to content

{ Tag Archives } nginx

Drakonen.com

Finally i had the impulse to buy my own domain: drakonen.com. I ‘moved’ my blog to this domain which took a simple symlink. Making Nginx do a moved permanently redirect was a bit harder though, and caused quite some frustration. But here it is:
server {
server_name     drakonen.digigen.nl;
if ($http_host = ‘drakonen.digigen.nl’ ) {
rewrite  ^(.*)  http://drakonen.com$1  permanent;
}
}
This can [...]

Also tagged , , ,

Nginx userdir list

Our Nginx server was without a proper ~user listing. While this is default in most apache configs, its not in Nginx. My friend Dominiek made a hack with a ruby script. This would have worked fine if had some more work but memory usage was pretty bad (especially for big files).
So, I started on a [...]

Also tagged , , ,