This is probably a problem with nginx and you code then vagrant. >From here my guess is that your nginx config is only set up to respond with your code if you access it from mysite.com and so changing your nginx config by removing server line will probably fix this. On Mar 28, 2014 4:12 AM, "Jeanmichel Cote" <[email protected]> wrote:
> Hi, > > i just set myself a nice vagrant local development of a website that is > online at the moment. I've forwarded ports 8080 on host to 80 on guest, > tweaked my host's hosts file adding 127.0.0.1 mysite.com and i configured > my nginx accordingly so instead of visiting localhost:8080, i go to > mysite.com:8080 and the site is right up. Good. > > So i thought, great, now i want to show the client some modifications i > just made to his site. Vagrant share then gives me a funky url which i go > visit in a browser. > > The thing is that even though it worked just fine on mysite.com:8080, by > using vagrant share's url it just throws the "Welcome to Nginx!" page, as > if it couldnt read my mysite file in /etc/nginx/sites-enabled/mysite. > > I hope i made myself clear enough so that it ring someone's bell. If you > have any info about this, it would help a lot. > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
