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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -