These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for How to preview a website that is not yet pointed to the server? on the new forum.
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!
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
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
Its not pointed to my server yet!
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.
Hi it does not seem to work the preview in Virtualmin ->Services -> Preview Website.
Any other ideias?
Howdy,
What happens when trying to use the Preview Website feature? What about that doesn't work properly?
-Eric