| Linode Forum https://forum.linode.com/ |
|
| Preview site without DNS setup https://forum.linode.com/viewtopic.php?f=19&t=12455 |
Page 1 of 1 |
| Author: | dgd [ Fri Nov 27, 2015 2:19 pm ] |
| Post subject: | Preview site without DNS setup |
I have a number of sites on my Linode. I would like to be able to preview them before the DNS is setup. This doesn't help https://www.linode.com/docs/networking/ ... ithout-dns because it only addresses a single site. What I'm looking for is something like Code: http://99.88.77.165/home/admin/web/something.com/public_html Thanks! |
|
| Author: | Vance [ Sat Nov 28, 2015 2:03 am ] |
| Post subject: | Re: Preview site without DNS setup |
You can put as many host names as you like in a hosts file entry, e.g.: Code: 99.88.77.165 foo.example.com bar.example.org baz.example.net All three of those host names would then resolve to 99.88.77.165. Your web server configuration would decide which site to serve based on the "Host:" line sent by the web browser. For example, requesting http://baz.example.net/home/admin/web/ would cause the browser to send baz.example.net in the Host: field. |
|
| Author: | dgd [ Sat Nov 28, 2015 12:42 pm ] |
| Post subject: | Re: Preview site without DNS setup |
Thanks Vance, Editing the vhosts file on Linode was the missing piece. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|