view test site on server without changing dns
-
so i'm in the process of moving one site to a new server but i want to be able to look at the site on the new server to work on it before i change the dns entry.
other than the host file trick (which only half worked for me...but i'll work on that), is there anyway to access those files with just the ip address?
running NGINX ;-)
Posted 2 years ago # -
I've been struggling with this for a month or so as well. I don't have the .net platform on my xp box and no way to install it...tried on my linux box but am lost there too...so I changed the site name to the ip addy for now and am able to view it live on the net as it is live... but incognito at the moment. When it's ready I'll just change the site name, reconfig my dns settings and change the nameservers. Maybe this could be a suitable workaround for you? best
Posted 2 years ago # -
just to confirm to you guys:-
this doesn't work? open hosts file:-
sudo nano /etc/hosts
..edit that, adding this line anywhere:-
12.34.56.78 someDomain.com
12.34.56.78 http://www.someDomain.com.. where 12.34.56.78 is your VPS IP and someDomain.com and http://www.someDomain.com is the site you want to fake DNS for.
you still need your virtual host file and symlink, and of course the site's directory structure.
.. really should work?!
Posted 2 years ago # -
it does work for me (not sure why it didn't at first) but it's just a pain in the ass to change my host file each time i wanna work on the site and then go back to the current working site.
i wanna know if there is a way to be like:
http://111.111.111.111/public_html/newversionofsite.comand be able to see the site before i've made the dns changes. i know you can do this with apache.
Posted 2 years ago # -
never tried, Tamerax .. anyone?
Posted 2 years ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
