Что-то поменялось, но пока не работает как нужно :
запрос
http://127.0.0.1/?go=all/note-name-hi-kitty/
редиректит на
http://127.0.0.1/index.html/?go=all/note-name-hi-kitty/
/etc/nginx/sites-enabled/ghost
map $arg_go $new_url {
default "";
all/note-name-hi-kitty/ /2014/12/23/note-name-hi-kitty/;
all/article-name-hello-world/ /2014/01/01/article-name-hello-world/;
# тут остальные ссылки
}
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name 127.0.0.1;
#redirect for old links
location = / {
if ($new_url) {
return 301 $new_url;
}
}
root /usr/share/nginx/html;
index index.html index.htm;
client_max_body_size 10G;
location / {
proxy_pass http://localhost:2368;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
}
}