【发布时间】:2016-06-15 05:01:06
【问题描述】:
我需要为特定的 url 设置重定向规则 - 我正在使用 NGINX。
基本上是这样的:
http://example.com/ --> http://example.com/maps
我正在尝试:
location / {
proxy_pass http://maps-testmk;
include /etc/nginx/proxy_params;
return 301 http://maps-testmk.mgr.ru/maps;
}
}
但我有 - 500 错误
【问题讨论】: