0

I recently used the Deploying to VPS Railscasts by Ryan Bates for one of my projects. Everything worked like a charm however there is one small issue which is bugging me regarding the nginx configuration. For some reason whenever I enter the staging enviornment domain it shows the right page but gets redirected to an IP instead of showing the domain.

For example if the domain is example.com it gets redirected to xx.xx.xxx.xx which is the IP address of the server.

Can anyone help me resolving this. I have tried several online sources but none of them seems to work. Most of the time I just end up having nginx in infinite loop creating redirects.

Thanks

Smoke
  • 1,052
  • 1
  • 10
  • 24
  • 2
    Can you show us your nginx configuration? – Anthony Alberto Nov 05 '12 at 15:36
  • My nginx configuration is pretty much the same as he is having in his Screencast. The only difference is mine is containing different server name and IP as compared to his. – Smoke Nov 06 '12 at 03:26

1 Answers1

0

It was actually not an issue with Nginx conf infact it was actually an issue with resolving the DNS properly.

Smoke
  • 1,052
  • 1
  • 10
  • 24