Change - Know that nothing stays the same

NGinx and yourdomain.com/+ => google+

July 12, 2011

nginx
config

A simple tip for make a redirection in your domain to your google plus profile. In the nginx conf file for your domain only needs to add this lines:

if ($request_uri ~ ^/\+$){
  rewrite ^ http://profiles.google.com/yourprofileid  permanent;
}

And now, you can share a new url http://yourdomain.com/+ for google+.

In my case http://agustinvinao.com.ar/+

[update] this sentence must go after the server directive:

server_name agustinvinao.com.ar www.agustinvinao.com.ar;
if ($request_uri ~ ^/\+$){
  rewrite ^ http://profiles.google.com/agustinvinao  permanent;
}

Agustin Vinao
Agustin Vinao.

Paradox: Life is a mystery. Don't waste time trying to figure it out.
Humor: Keep a sense of humor, especially about yourself. It is a strength beyond all measure.
Change: Know that nothing stays the same.