Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: members.linode.com
PostPosted: Sat Jul 07, 2012 8:37 pm 
Offline

Joined: Wed Jul 04, 2012 9:18 pm
Posts: 1
Hi,

How can I prevent my website from being accessed through <my linode>.members.linode.com? Google has started indexing this second version of my website and I do not want to run into any duplicate content issues.

Many thanks, and sorry if this was the wrong section

Alex


Top
   
 Post subject: Re: members.linode.com
PostPosted: Sun Jul 08, 2012 1:16 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
You could create a name-based virtual host for lixx-yy.members.linode.com and place a Deny from all directive in it. Though it's not clear what "duplicate content issues" you would be solving by doing so.


Top
   
 Post subject: Re: members.linode.com
PostPosted: Sun Jul 08, 2012 7:34 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
Another option is to create a default vhost for all unrecognized domains that just serves the Apache default "It Worked!" page or does a redirect to your preferred domain.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject: Re: members.linode.com
PostPosted: Sun Jul 08, 2012 10:56 am 
Offline
Senior Member

Joined: Wed Jun 27, 2012 10:00 pm
Posts: 87
Website: http://hemonc.org/wiki/Main_Page
act4 wrote:
How can I prevent my website from being accessed through <my linode>.members.linode.com? Google has started indexing this second version of my website and I do not want to run into any duplicate content issues.
Is this enabled by default? I'm not seeing anything if I try to go to http://linodexxxxxx.members.linode.com (as seen on the dashboard under Linodes » linodexxxxxx) or http://newarkxxx.members.linode.com, but maybe I'm using the wrong address. Or, maybe my current virtualhost settings are preventing this?

_________________
Amateur, eager to learn.
My hematology, oncology, and chemotherapy regimen wiki


Top
   
 Post subject: Re: members.linode.com
PostPosted: Sun Jul 08, 2012 12:51 pm 
Offline
Senior Member
User avatar

Joined: Thu Nov 24, 2011 12:46 pm
Posts: 139
Location: Mesa AZ
I only have Vhosts. Anything that hits the server by IP or using a hostname that is not currently active gets caught by the first entry in my vhosts.conf file which is "Junk".

That has a simple page which catches any page attempt and displays a simple page indicating that the site they are attempting is either offline or no longer supported. It provides the URI that was attempted and some simple contact info, Nothing else.

First entry in my vhosts.conf file is an unnamed (No ServerName or ServerAlias):
Code:
<VirtualHost *:80>
    ServerAdmin     "webmaster at domain.com"
    DocumentRoot    /www/vhosts/junk
    ErrorLog        logs/junk.errors
    CustomLog       logs/junk.combined combined
</VirtualHost>

The log files provide a good list of hack attempts since a lot of bots used IP based attempts.

Even if there is only 1 web page for the server, I still set it up this way.

Also, you can use a mod_rewrite to force access to your sites to be the hostname that you want it to be accessed by, keeping indexing consistent as well. This will help with search engine listings.

If you prefer everything be http://www.hostname.tld then you can use something like:
Code:
RewriteCond %{HTTP_HOST} !^(.*)\.hostname\.tld$ [NC]
RewriteRule ^(.*)$ http://www.hostname.tld/$1 [R=301,L]

You can do it the other way around too if you choose.

_________________
Kevin a.k.a. Dweeber


Top
   
 Post subject: Re: members.linode.com
PostPosted: Sun Jul 08, 2012 1:24 pm 
Offline
Senior Member
User avatar

Joined: Wed Apr 20, 2011 1:09 pm
Posts: 63
additionally, google respects canonical url meta-tags in your html.

http://support.google.com/webmasters/bi ... r=139066#5

_________________
うるさいうるさいうるさい!


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


Who is online

Users browsing this forum: mattltm and 3 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