I have live magento site yyy.com configured using nginx in linux AWS AMI its using AWS RDS for database. For the development purpose i have created the development server from the current live server image and for the development purpose i have created a sub-domain dev.yyy.com and for the development also i created a new RDS server and the dumped the live server databases content. I have changed both the secure to insecure URL from yyy.com to dev.yyy.com in the core-config-data and upadted the dev database details in the local.xml config file also and clear the cache and session folder.
The issue is if I load the dev.yyy.com means its taking me to yyy.com.
I put new index.php containing "Hi this test"vinstead of magento index.php in the dev.yyy.com root directory means i can see Hi this test in the browser when i load dev.yyy.com.
Is there any configuration in nginx like return or redirect to resolve this issue.
and if anyone tell me this nginx related problem or magento files related problem. It will be very helpful for me to check further.
I working on this 2 days.