2

大家好,我正在尝试将 /blog 重定向到 blog.mysubdomain.com 这是我的 nginx conf 中的位置部分:

location /blog {
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header Host $http_host;
  proxy_redirect false;
  proxy_pass  http://blog.letitcast.com;
}

你可以看看这里: http: //letitcast.com/blog

它可以工作,但没有 CSS,我无法访问 /blog/wp-admin

你有想法吗 ?

谢谢

4

1 回答 1

1


这应该可以解决问题:

rewrite /blog/(.*) /$1 break;
于 2010-10-05T09:18:03.947 回答