Working in site preview mode........
Posted: 28 May 2010, 04:03
by mongo
Hiya, hope someone can provide some assistance
We are working on a new project where the domains dns is still not pointed at our servers.
We have the ability to view the work we are doing through a site preview mode.
This uses the ip of server, to server the pages we want to see in this format
http://xx.xx.xx.xx/$sitepreview/domain.com/
Now.....
If I go to the page
http://xx.xx.xx.xx/$sitepreview/domain. ... /index.php
and try to login, I am directed to the domain name, which ofcourse does not hold files re our server but goes to where the dns is pointed.
So, how can we change the configuration so that the software will look to the servers ip, i.e
http://xx.xx.xx.xx/$sitepreview/
thanks
Re: Working in site preview mode........
Posted: 30 May 2010, 23:28
by lowray1975
Add an entry for your web site in your hosts file. THis will bypass DNS and allow you to test your site correctly before switching DNS.
Re: Working in site preview mode........
Posted: 31 May 2010, 04:22
by mongo
lowray1975 wrote:Add an entry for your web site in your hosts file. THis will bypass DNS and allow you to test your site correctly before switching DNS.
Hello, could you please be a little more specific?
Are you talking abt editing the local lmhosts file on the local PC ? Server ?
If so, could you explain with an example on how to do this.
Thanks
Posted: 31 May 2010, 11:05
by SofTones
Ha haaaa, yeah... go to your PC, then Windows-> sytem32->drivers-> etc-> and edit the "hosts" file with notepad then add an entry as our friend lowray1975 said !!! ( in your hosts file you put addresses ( without http://... and without www. !!!) that you don't want your browsers to display... and it wont go there because it's pointing to your own computer !!! (127.0.0.1)) This is a good way to stop all these ads and other stuff stealing your bandwidth, just put their address in your hosts file, and you wont see it again when you go to that site... EXAMPLE: 127.0.0.1 adclick.com Savvy??got that?? ok ??
Every time a site shows you an ad, it steals a tiny bit of your speed.. you have to wait for it to load, and a bit of your bandwidth... every time I go to a site with this crap, I hover on the offender, to get the address, then copy it and paste it into the host file such as this small portion:
127.0.0.1 adserver.terra.es
127.0.0.1 adserver.theonering.net
127.0.0.1 adserver.track-star.com
127.0.0.1 adserver.trb.com
127.0.0.1 adserver.tribuneinteractive.com
127.0.0.1 adserver.ugo.com
127.0.0.1 adserver.usermagnet.com
127.0.0.1 adserver.visions.de
127.0.0.1 adserver.webhostlist.de
127.0.0.1 adserver.yahoo.com
127.0.0.1 adserver1-images.backbeatmedia.com
127.0.0.1 adserver1.backbeatmedia.com
127.0.0.1 adserver1.mediainsight.de
127.0.0.1 adserver1.ogilvy-interactive.de
My browsers don't show these things, and the pages load faster too...
Here endeth the first lesson..........