How to preview a website that is not yet pointed to the server?

7 posts / 0 new
Last post
#1 Tue, 04/29/2014 - 06:18
wormsunited

How to preview a website that is not yet pointed to the server?

Howdy, i have a question, maybe silly one but i need to preview a website on my vps and i dont know how to do it.

The work i just made, a website, does not have yet a domain name. Is it possible to preview with the IP of the VPS? using a link like for example: IP: 0.0.0.0.0/preview-work/ ? Or do i need to set something on my vps?

Thanks in advance!

Tue, 04/29/2014 - 09:16
jimdunn

You will probably be told about the fancy URL's that you could try, but the best/easiest/fastest/cleanest way that I've found is:

1) edit your C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS file

2) add the following lines to the bottom

111.222.333.444 server.example.com webmail.example.com smtp.example.com
111.222.333.444 pop3.example.com imap.example.com mail.example.com
111.222.333.444 ftp.example.com www.example.com
111.222.333.444 example.com

3) then, without needing to reboot, you will be able to "test" the example.com domain

4) ONCE YOU'VE FINISHED TESTING, BE SURE TO COMMENT OUT THOSE LINES TO USE DNS PROPERLY!!!

#111.222.333.444 server.example.com webmail.example.com smtp.example.com
#111.222.333.444 pop3.example.com imap.example.com mail.example.com
#111.222.333.444 ftp.example.com www.example.com
#111.222.333.444 example.com

Tue, 04/29/2014 - 09:46
andreychek

Howdy,

Another alternative -- do you have any domains currently pointed to your server?

If so, you could setup an alias for the domain which doesn't currently work, using the one that does.

For example, if you go into Create Virtual Server, and click "Alias of example.com" -- there you could setup an alias of your domain that's not currently working, and you could make a name like "preview_website.example2.com", where example2.com is another domain on your server that is currently working.

-Eric

Mon, 05/12/2014 - 05:06 (Reply to #3)
wormsunited

Its not pointed to my server yet!

Thu, 05/08/2014 - 13:13
den

There is a built-in feature for previewing virtual servers. You can find it under Virtualmin ->Services -> Preview Website. It works pretty well. Last time I used it I installed Wordpress on my new server before the DNS change could take effect. Don't have to fiddle with your hosts file as well.

Mon, 05/12/2014 - 05:05
wormsunited

Hi it does not seem to work the preview in Virtualmin ->Services -> Preview Website.

Any other ideias?

Mon, 05/12/2014 - 10:49
andreychek

Howdy,

What happens when trying to use the Preview Website feature? What about that doesn't work properly?

-Eric

Topic locked