I have migrated a static
app from dotcloud to Next dotCloud and found that my nginx regrite rules didn't work.
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.
Old rule
rewrite ^/oldurl /newurl redirect;
New rule
rewrite ^/oldurl $scheme://$host/newurl redirect;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.