私はゴーストブログをhttp://shawn.arthur.io/
にインストールしました。 複数のブログを作成するのではなく、1つのブログを作成し、「タグ」の使い方を利用してさまざまなコレクションを分けました。GhostのブログURLを書き換えるNginx
> http://shawn.arthur.io/en/tag/travel
> http://shawn.arthur.io/en/tag/culture
> http://shawn.arthur.io/en/tag/food
ゴーストバックエンドを変更することはほとんど不可能です。私は実際にあなたが続いてhttp://shawn.arthur.io/en/blogs/$X
を訪問したときにhttp://shawn.arthur.io/en/tag/$X
のショーの内容になりますnginxのゴースト構成ファイルで書き換えルールを追加することができ、私のnginxのコードです:
location /en {
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;
}
location /en/blogs {
proxy_pass http://localhost:2368/en/tag;
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 on;
}
PROBLEM
I書き込み、http://shawn.arthur.io/en/blogs/sklfasjfask、それは正常に動作しますが、私はリンクを介してWebページに来ると、自動的にhttp://shawn.arthur.io/en/tag/sklfasjfaskにリダイレクトします。なぜこれが起こるのですか?どうすれば解決できますか?