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">https://www.linode.com/docs/networking/dns/previewing-websites-without-dns because it only addresses a single site.

What I'm looking for is something like

http://99.88.77.165/home/admin/web/something.com/public_html

Thanks!

2 Replies

You can put as many host names as you like in a hosts file entry, e.g.:

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.

Thanks Vance,

Editing the vhosts file on Linode was the missing piece.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct