[英]How do I migrate my Nginx's rewrite rules from dotCloud to Next dotcloud?
I have migrated a static
app from dotcloud to Next dotCloud and found that my nginx regrite rules didn't work. 我已将
static
应用程序从dotcloud迁移到Next dotCloud,发现我的Nginx regrite规则不起作用。
They redirect from 他们从
miappname.dotcloudapp.com/oldurl
to 至
miappname.dotcloudapp.com:someport/newurl
instead of 代替
miappname.dotcloudapp.com/newurl
The old nginx's rewrite
rules must be migrated to by adding the domain name explicitly as follows. 必须通过如下显式添加域名,将旧的nginx的
rewrite
规则迁移到。
Old rule 旧规则
rewrite ^/oldurl /newurl redirect;
New rule 新规定
rewrite ^/oldurl $scheme://$host/newurl redirect;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.