Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jul 08, 2011 11:19 am 
Offline
Senior Newbie

Joined: Thu Jan 20, 2011 1:03 pm
Posts: 13
I'm using name-based virtual hosting. I've set up a development site on my linode. This is one of 10 other websites.

Normally I would add the domain name I'm working on and the linode ip to my local hosts file so I could work on the site in dev while client and rest of the world still sees the old site. Then when time is ready, go to godaddy and point the DNS.

But what if I don't have a local hosts file? Can't get shell access on the computer I'm using. How can I see a site that does not have the dns pointed to it?

I've asked the guys in support if there was something like http://linodeip.domainsever.something...but they've told me, no. I'd need to use a browser that could send host headers without using the actual domain. I'm locked into Chrome and I don't see this function.

I've looked up some sort of virtual hosts file, etc or proxy...but I can't seem to put my finger on it.

Any help would be appreciated.

Steven


Top
   
 Post subject:
PostPosted: Fri Jul 08, 2011 11:45 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You could set up a sub domain to point to the site say test.yoursite.com and have that as a server alias to the site.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Fri Jul 08, 2011 1:22 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
mco2669 wrote:
I've asked the guys in support if there was something like http://linodeip.domainsever.something...but they've told me, no.


Not sure if this is what you mean, but every linode comes with a default reverse DNS entry of liXX-YYY.members.linode.com.

One thing to be aware of when using a different (sub)domain for testing your website, however, is that some apps will break when you change the (sub)domain. For example, WordPress 2.x used to remember which domain it was on, and refused to function properly when moved to another domain. You had to change a couple of rows in the database before WordPress would play along. I don't know if WordPress 3.x still does this, but it was very annoying. Other apps might do this too, if it insists on using absolute URLs.


Top
   
 Post subject:
PostPosted: Fri Jul 08, 2011 1:43 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Wordpress 3.1 still does it, not sure about 3.2 not played with that yet.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Fri Jul 08, 2011 2:07 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
Quote:
I don't know if WordPress 3.x still does this, but it was very annoying.


Yes, that huge mass of spaghetti code known as WordPress still hard codes the FQDN it's installed at inside the database.


Top
   
 Post subject:
PostPosted: Fri Jul 08, 2011 5:52 pm 
Offline
Senior Newbie

Joined: Thu Jan 20, 2011 1:03 pm
Posts: 13
Yep. Wanted to stay away from a sub-domain for that particular reason. Going in afterwards and changing the wp-options table as well as some plugins that might act goofy. Looking for a vitrual hosts file to go through. A host file set up in the browser would be awesome...


Top
   
PostPosted: Fri Jul 08, 2011 6:37 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
mco2669 wrote:
But what if I don't have a local hosts file? Can't get shell access on the computer I'm using. How can I see a site that does not have the dns pointed to it?

Not sure how you can be doing legitimate dev work and NOT have shell access???

In any case, LIVE CD, edit hosts file, done.


Top
   
 Post subject:
PostPosted: Fri Jul 08, 2011 7:04 pm 
Offline
Senior Newbie

Joined: Thu Jan 20, 2011 1:03 pm
Posts: 13
Yes, far from legitimate. I have the site loaded and everything installed, just need to do some design tweaks on it. Will be away from home for a few weeks with a Chromebook as my tie to the world. Can sort the file changes and ftp, just can't figure the hosts file to access it as I would were I at home.


Top
   
 Post subject:
PostPosted: Fri Jul 08, 2011 8:36 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
Is this the type of thing you're putting up with?

http://www.servercobra.com/nothing-but- ... or-a-week/

If so then why would Google provide an OS with such limited shell features. Even dropping into "developer" mode supposedly just gets you a shell "similar to bash".

Wow.

You actually paid good money for that machine?


Top
   
 Post subject:
PostPosted: Fri Jul 08, 2011 10:02 pm 
Offline
Senior Newbie

Joined: Thu Jan 20, 2011 1:03 pm
Posts: 13
Yeah, thanks. I've been following the servercobra. My comment on there. Slugging through it, yes indeed.


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


Who is online

Users browsing this forum: No registered users and 7 guests


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