Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Nov 27, 2015 2:19 pm 
Offline
Newbie

Joined: Fri Nov 27, 2015 2:14 pm
Posts: 2
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!


Top
   
PostPosted: Sat Nov 28, 2015 2:03 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
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.


Top
   
PostPosted: Sat Nov 28, 2015 12:42 pm 
Offline
Newbie

Joined: Fri Nov 27, 2015 2:14 pm
Posts: 2
Thanks Vance,

Editing the vhosts file on Linode was the missing piece.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group