Skip to content

Instantly share code, notes, and snippets.

@mwalling
Created May 17, 2011 19:29
Show Gist options
  • Save mwalling/977194 to your computer and use it in GitHub Desktop.
Save mwalling/977194 to your computer and use it in GitHub Desktop.
[05-17] 14:17:34 [*] terranmoccasin [~62e0e5a2@chat.linode.com] has joined #linode
[05-17] 14:18:05 < terranmoccasin> hello
[05-17] 14:18:37 [*] terranmoccasin [~62e0e5a2@chat.linode.com] has left #linode []
[05-17] 15:23:47 [*] terranmoccasin [~62e0e5a2@chat.linode.com] has joined #linode
[05-17] 15:24:32 < terranmoccasin> hey is anyone there, i have a question about my linode setup
[05-17] 15:25:06 < terranmoccasin> ok
[05-17] 15:25:10 < terranmoccasin> my site is nearthebox.com
[05-17] 15:25:16 < terranmoccasin> but when i do
[05-17] 15:25:18 < terranmoccasin> www.nearthebox.com
[05-17] 15:25:20 < terranmoccasin> it doesnt work
[05-17] 15:25:36 < hawk> terranmoccasin: It clearly does say that it works
[05-17] 15:25:58 < terranmoccasin> if i go to www.nearthebox.com its directing me to a different directory
[05-17] 15:26:06 < mwalling> terranmoccasin: tell your webserver that www. and "plain" nearthebox are the same
[05-17] 15:26:32 < terranmoccasin> how do i do that? i followed the guide here http://library.linode.com/lamp-guides/ubuntu-10.04-lucid#sph_system-configuration
[05-17] 15:26:48 <@heckman> terranmoccasin: it's because of your RDNS
[05-17] 15:26:56 < mwalling> terranmoccasin: it will be another <VirtualHost> block
[05-17] 15:27:17 < terranmoccasin> sorry i should have been more clear, i meant that it was directing me to a different directory
[05-17] 15:27:29 < mwalling> terranmoccasin: *I* personally, set up a <VirtualHost> block on www. to redirect people (uising a Redirect) to "plain" markwalling.org
[05-17] 15:27:33 <@heckman> terranmoccasin: the quick fix is to disable the default virtual host in Apache2. The best option would be to choose a hostname/RDNS entry that is not "www.nearthebox.com"
[05-17] 15:28:56 < terranmoccasin> heckman, where do i change the hostname/rdns entry?
[05-17] 15:29:25 <@heckman> terranmoccasin: http://library.linode.com/getting-started#sph_set-the-hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment