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
Hosting,
nginx,
Rails. Written by:
stjernstrom
Just want to send my congrats to Marcus Ahnve who will join ThoughtWorks starting June, he will be in charge of starting TW’s Swedish office.
I had the pleasure to work with Marcus during his time at wemind and I hope we can find some cool projects in the future to work on or at least some bacon wrapped-jimmy-burgers!
Best of luck to Marcus!
Posted in
Life at May 19th, 2008.
No Comments
Tagged with
Life. Written by:
stjernstrom
Today i found a ‘new’ lunchbox in our refrigerator. New is a bit excessively!

Lesson learned! You have to eat you lunch in time or it will grow old and crawl away…..
Click the image to get all the yummy details.
Posted in
Life at May 19th, 2008.
2 Comments
Tagged with
food,
Life. Written by:
stjernstrom
Yesterday i was updating all my ruby gems. During the update a got disturbed by something so i did not pay attention what gems got updated.
This morning i found my current app not starting up.
This is how i solved it
Read More…
Posted in
Ruby at May 13th, 2008.
4 Comments
Tagged with
gems,
Ruby. Written by:
stjernstrom