migrating a Cherokee configuration to Nginx

I’m releasing today cherokee2nginx – a script that converts your old cherokee.conf to a new and shiny nginx.conf. Well, not that shiny since the conversion is incomplete and this initial version only covers the parts I needed for a single server, but it sure beats having to do everything by hand.

From the parts that need manual editing after the conversion, the ɯɯɯ.domain.tld to domain.tld redirect is worth mentioning because the proper way to do it for Nginx looks like this:

server {
    listen 80;
    server_name www.domain.tld;
    return 301 http://domain.tld$request_uri;
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s