It appears you have not yet registered with our community. To register please click here...

DNforum.com - Domain Sales, Domain Forum, Domain Appraisals
 
Register Now!
Register Now for FREE!
Our records show you have not yet registered to our forums. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:  
Birthday:       I agree to forum rules 

Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion
Reply
 
LinkBack Thread Tools Display Modes
Old 11-16-2005, 11:51 AM   #1 (permalink)
Platinum Lifetime Member
 
madcamel's Avatar
 
Last Online: 09-03-2008 06:17 PM
iTrader: (13)
Join Date: Nov 2003
Posts: 938
DNF$: 18,559
Country:


Catching all traffic...

Hey all,

I'm sure I've seen this question here before but I can't find it now...

I have a domain hosted somewhere, and am interested in catching all the traffic it gets (it's an expired domain that used to be a website).
I mean that I want to be able to catch: abcdef.mydomain.com, and also www.mydomain.com/abcdef/abcdef.ghi

Thanks for any help
madcamel is offline   Reply With Quote
Sponsored Links
Old 11-16-2005, 12:02 PM   #2 (permalink)
Administrator
 
DotComGod's Avatar
 
Name: Adam Dicker
Last Online: Today 01:44 PM
iTrader: (35)
Join Date: Feb 2003
Posts: 8,499
DNF$: 4,652,726
Location: Toronto, Canada
Country:


Re: Catching all traffic...

Are you hosting it and if yes on what operating system and backend?

eg, linux cpanel
DotComGod is offline   Reply With Quote
Old 11-16-2005, 12:04 PM   #3 (permalink)
Platinum Lifetime Member
 
madcamel's Avatar
 
Last Online: 09-03-2008 06:17 PM
iTrader: (13)
Join Date: Nov 2003
Posts: 938
DNF$: 18,559
Country:


Re: Catching all traffic...

yes, it is hosted on linux\cPanel
madcamel is offline   Reply With Quote
Old 11-16-2005, 01:08 PM   #4 (permalink)
 
gemsergio's Avatar
 
Name: sexopol deminauticus
Last Online: Today 04:53 PM
iTrader: (5)
Join Date: Apr 2003
Posts: 645
DNF$: 296
Country:


Re: Catching all traffic...

there should be a 404 page set up from there you can redirect the traffic where you wish (HP for instance)
I just checked my myspace misspell and noticed that I am losing around 30 percent of traffic because I did not set it up damn.
__________________
Smiletrain.org

250 USD can really change a life.

Atheist and proud.

On the first day, man created God.

Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful.
gemsergio is offline   Reply With Quote
Old 11-16-2005, 10:13 PM   #5 (permalink)
Account Terminated
 
denny007's Avatar
 
Last Online: 05-28-2008 11:10 PM
iTrader: (40)
Join Date: Oct 2004
Posts: 2,839
DNF$: 9,942
Country:


Re: Catching all traffic...

With just cpanel account You simply can NOT catch *.domain.com, unless someone ad into DNS * IN CNAME %domain.com%.

But it still wil be mapped on server not into Your account directort, but all *.domain.com are mapped into /usr/local/apache/htdocs

So basically the only way to catch *.domain.com traffic you need your own server.

In this case:
1.
In the /usr/local/apache/htdocs create a index.php like this:
<?
$host = $_SERVER["HTTP_HOST"];
$break = explode (".", $host);
$a = count($break);
$domain = $break[$a-2] . "." . $break[$a-1];
?>
<html>
<head>
<title><? echo $_SERVER["HTTP_HOST"]; ?></title>
</head>
<frameset rows="100%,*" frameborder="no" border="0" framespacing="0">
<frame src="http://<? echo $domain;?>/">
</frameset>
</body>
</html>

2.
Also need to edit httpd.conf:
-----
edit /usr/local/apache/conf/httpd.conf
.
.
DirectoryIndex index.php
.
.
(the Index.php must be first).
-----------------------
The reason is. default first is index.html and anytime whm updates, it put a new index.html

4.
With own server is good to have default DNS template:
DNS Functions/Edit Zone Templates/Standard
Make this template, than every new account will have default all *.domain.com set up:
-----------------------
; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

%domain%. IN NS %nameserver%.
%domain%. IN NS %nameserver2%.
%domain%. IN NS %nameserver3%.
%domain%. IN NS %nameserver4%.

%domain%. IN A %ip%
wwww.%domain%. IN A %ip%
www.%domain%. IN A %ip%
ww.%domain%. IN A %ip%
w.%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 0 %domain%.

* IN CNAME %domain%.
denny007 is offline   Reply With Quote
Old 11-16-2005, 11:01 PM   #6 (permalink)
DNF Member
 
Name: Randy
Last Online: Yesterday 06:48 PM
iTrader: (6)
Join Date: Apr 2004
Posts: 247
DNF$: 4,452


Re: Catching all traffic...

Hey,

To catch the www.mydomain.com/abcdef/abcdef.html traffic, find the .htaccess file in your file manager and insert the following

ErrorDocument 404 /

In order to catch the subdomain traffic (abcdef.mydomain.com)
There are several ways, here is a couple.

If you have a dedicated IP address and WHM (web host manager) access:

From the WHM...
1) Edit a DNS Zone
2) Choose your domain name and hit edit.

Under the Add New Entries Below this Line section

In the first box put an *
In the second box put 14400 (Should be pre-selected)
Choose "CNAME" from the drop down menu. (third box)
In the next box put your domain.com. <-- Don't forget the dot at the end
ignore the last two boxes.
Click "Save"

Of course, if you know the subdomains you want to catch..try parking them from the WHM.

Hope that helps..
__________________
Myspace Games

Last edited by cinran; 11-16-2005 at 11:20 PM.
cinran is offline   Reply With Quote
Old 11-16-2005, 11:14 PM   #7 (permalink)
Account Terminated
 
denny007's Avatar
 
Last Online: 05-28-2008 11:10 PM
iTrader: (40)
Join Date: Oct 2004
Posts: 2,839
DNF$: 9,942
Country:


Re: Catching all traffic...

ErrorDocument 404 /www.mydomain.com is wrong
should be
ErrorDocument 404 /
Same should be put also into .htaccess in /usr/local/apache/htdocs
denny007 is offline   Reply With Quote
Old 11-16-2005, 11:22 PM   #8 (permalink)
DNF Member
 
Name: Randy
Last Online: Yesterday 06:48 PM
iTrader: (6)
Join Date: Apr 2004
Posts: 247
DNF$: 4,452


Re: Catching all traffic...

Quote:
Originally Posted by denny007
ErrorDocument 404 /www.mydomain.com is wrong
should be
ErrorDocument 404 /
Same should be put also into .htaccess in /usr/local/apache/htdocs
Thanks for the correction .. not sure why I added the url .. Brain fart?

However, never have added in /usr/local/apache/htdocs
works fine without it.
__________________
Myspace Games

Last edited by cinran; 11-16-2005 at 11:26 PM.
cinran is offline   Reply With Quote
Old 11-16-2005, 11:33 PM   #9 (permalink)
Account Terminated
 
denny007's Avatar
 
Last Online: 05-28-2008 11:10 PM
iTrader: (40)
Join Date: Oct 2004
Posts: 2,839
DNF$: 9,942
Country:


Re: Catching all traffic...

All *.domain.com are mapped to /usr/local/apache/htdocs
Default in whm is 404.shtml
It is better the *.domain.com/sadasdf (404 traffic) redirect to domain.com, so i.e. in the webalizer You will easily see if any sdfg.domain.com/asd url is for some reason extremely popular.
Reading the stats regulary helped me to discover x00 great domains.
denny007 is offline   Reply With Quote
Old 11-17-2005, 12:46 AM   #10 (permalink)
DNF Regular
 
DNGeeks's Avatar
 
Name: Bruce
Last Online: 09-02-2008 03:01 PM
iTrader: (3)
Join Date: Jan 2005
Posts: 611
DNF$: 4,465
Location: Winnipeg Canada
Country:


Re: Catching all traffic...

If you are using zoneedit for any of your DNS you can add a simple entry into the IP Addresses section of *.domain.com - ipaddresshere. It does work, I have tried it.

If you have access to WHM or DNS functions enabled in your cpanel you can enter an A address of * - ipaddreshere.

This solves all your issues simply. It will forward all requests to the proper pages.

With your .htaccess configured for a 404 and 301 redirect from non www to www you should be 100% set.

Note - Both of the above modifications will work, however you must have a dedicated ip for each domain for this to work. It will not work on a shared IP.

Note2 - Please remember that this will cause issues if you have dns records pointing to other ip addresses for a mail or ftp host.
__________________
http://www.pocketbikeforum.com - Pocketbikes
http://www.indexusupport.com - Support, mods, tips and databases
http://www.gowinnipeg.ca - Winnipeg online directory
DNGeeks is offline   Reply With Quote
Old 11-17-2005, 12:55 AM   #11 (permalink)
Account Terminated
 
denny007's Avatar
 
Last Online: 05-28-2008 11:10 PM
iTrader: (40)
Join Date: Oct 2004
Posts: 2,839
DNF$: 9,942
Country:


Re: Catching all traffic...

I think no one here has an ip for each domain. The script I posted previously works - redirects traffic from *.domain.com to domain.com
denny007 is offline   Reply With Quote
Old 11-17-2005, 12:05 PM   #12 (permalink)
Platinum Lifetime Member
 
madcamel's Avatar
 
Last Online: 09-03-2008 06:17 PM
iTrader: (13)
Join Date: Nov 2003
Posts: 938
DNF$: 18,559
Country:


Re: Catching all traffic...

Thanks for all the detailed help guys. Very helpful!
madcamel is offline   Reply With Quote
Old 11-17-2005, 12:53 PM   #13 (permalink)
DNF Regular
 
DNGeeks's Avatar
 
Name: Bruce
Last Online: 09-02-2008 03:01 PM
iTrader: (3)
Join Date: Jan 2005
Posts: 611
DNF$: 4,465
Location: Winnipeg Canada
Country:


Re: Catching all traffic...

IP's aren't that expensive, but they must be justified. However some people have very high traffic names generating a lot of money. In that case it might be easier to just give it a dedicated IP.
__________________
http://www.pocketbikeforum.com - Pocketbikes
http://www.indexusupport.com - Support, mods, tips and databases
http://www.gowinnipeg.ca - Winnipeg online directory
DNGeeks is offline   Reply With Quote
Old 11-18-2005, 12:15 AM   #14 (permalink)
Account Terminated
 
denny007's Avatar
 
Last Online: 05-28-2008 11:10 PM
iTrader: (40)
Join Date: Oct 2004
Posts: 2,839
DNF$: 9,942
Country:


Re: Catching all traffic...

For real project sure, it should have separate IPs. For parked domains - its a waste, even for the high traffic ones.
denny007 is offline   Reply With Quote
Old 11-18-2005, 08:57 PM   #15 (permalink)
jdk
DNF Addict
 
jdk's Avatar
 
Name: Doug
Last Online: 08-31-2008 08:44 PM
iTrader: (151)
Join Date: Jul 2004
Posts: 6,117
DNF$: 67,783
Location: South Florida
Country:


Re: Catching all traffic...

Any way to do it with a reseller account for those who don't have a dedicated server?
jdk is offline   Reply With Quote
Old 11-29-2005, 12:01 PM   #16 (permalink)
Platinum Lifetime Member
 
madcamel's Avatar
 
Last Online: 09-03-2008 06:17 PM
iTrader: (13)
Join Date: Nov 2003
Posts: 938
DNF$: 18,559
Country:


Re: Catching all traffic...

Btw, I just found the easiest solution - using Fabulous's Name servers and redirecting.
madcamel is offline   Reply With Quote
Old 11-29-2005, 10:42 PM   #17 (permalink)
Account Terminated
 
denny007's Avatar
 
Last Online: 05-28-2008 11:10 PM
iTrader: (40)
Join Date: Oct 2004
Posts: 2,839
DNF$: 9,942
Country:


Re: Catching all traffic...

Say good bye to Asian traffic than, any domain using Fabulous DNS is not accessible from China and probably from other countries too.
denny007 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 06:08 PM.
Copyright @2001-2008 DNForum.com

Learn Domains
Promote Domains
Research Domains
Buy Domains
Resell Domains
Park Domains
Sell Domains
Build Domains
Host Domains
Trademark Domains
Domain Domains
manage Domains
Appraise Domains