How do I migrate my Nginx's rewrite rules from dotCloud to Next dotcloud? -
i have migrated static
app dotcloud next dotcloud , found 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 migrated adding domain name explicitly follows.
old rule
rewrite ^/oldurl /newurl redirect;
new rule
rewrite ^/oldurl $scheme://$host/newurl redirect;
Comments
Post a Comment