Today I was playing with nginx’s flv module. The page I made where private enough to password protect so i thought it would be great opportunity to learn how to do this with nginx.

Read More…

Posted in Hosting at November 8th, 2008. 2 Comments
Tagged with , , . Written by:

This is how I did a quick fix for a client of ours that are running a Ruby On Rails app behind an nginx/mongrel setup.

The mission where to move their wordpress weblog to the same server as the website.

The easiest way had been to add another IP and install apache behind it. They did not like this solution because they thought they where about to loose google page-rank if the blog and the website where on different ip’s. ok, Fair enough.

The simple solution became to install apache and just proxy the request thought nginx.

Read More…

Posted in Hosting at July 3rd, 2008. 2 Comments
Tagged with , , , . Written by:

Today one of our server got in trouble with an ACE encoded IDN domain. The problem seemed to be rails in combination with nginx’s X-Sendfile feature. The result became that when accessing the site trough the IDN domain x-senfile did not send any files….

Our quick and dirty solution (until we have found the source/or solved the problem) became redirecting all traffic from the IDN domain to the domain without strange-swedish-characters.

With nginx this is as simple as in most webservers just put the following code before you original server configuration in nginx.conf.

1
2
3
4
server {
    server_name  xn--svenskdomn-y5a.se www.xn--svenskdomn-y5a.se;
    rewrite ^(.*) http://www.svenskdoman.se$1 permanent;
}

And Bowang! All requests to www.svenskdomän.se will be redirected to www.svenskdoman.se.

Domain names have been changed to protect the innocent :-)

Cheers!

Posted in Hosting, Rails at May 21st, 2008. No Comments
Tagged with , , . Written by:

It's past my bedtime is using WP-Gravatar