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.
--
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 vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
server {
listen 80;
server_name mysite.com www.mysite.com;
root /vagrant/public;
rails_env development;
passenger_enabled on;
client_max_body_size 100M;
if ($host ~* www\.(.*)) {
set $host_without_www $1;
rewrite ^(.*)$ http://$host_without_www$1 permanent; # $1 contains '/foo', not 'www.mydomain.com/foo'
}
}
return 301 $scheme://mysite.com$request_uri;
breaks entirely the access by trying to redirect to the actual live site, which means that i dont know how to make that statement redirect with a port number. I tried
return 301 $scheme://mysite.com:8080$request_uri;
but its bad redirection.
So i'll keep on digging...