LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-29-2007, 03:46 PM   #1
walidaly
Member
 
Registered: Mar 2007
Posts: 64

Rep: Reputation: 15
404 emails for other domains


I setup a 404 error handler which sends mail for every 404 error but I get errors coming from other domain! why?!
 
Old 05-29-2007, 04:16 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
not a clue without some useful information to go on, and a "please" or "thanks"... post your actual configuration file, provde sample emails to highlight the problems you're seeing...
 
Old 05-29-2007, 06:59 PM   #3
walidaly
Member
 
Registered: Mar 2007
Posts: 64

Original Poster
Rep: Reputation: 15
sounds like it's not so common...anyway
.htaccess
Code:
ErrorDocument 404 /error/trap.php?error=404
trap.php
Code:
mail($to,'404',"on http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}",'from:...');
please...thanks...got all the time in the world...
 
Old 05-30-2007, 01:41 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
ok, so what domains are you getting? could be a dodgy dns setup somewhere and you're getting someone elses hits? all from a single source ip? any patterns in the domain names?
 
Old 06-01-2007, 07:40 AM   #5
walidaly
Member
 
Registered: Mar 2007
Posts: 64

Original Poster
Rep: Reputation: 15
nothing in related t domain names, but most of the error pages I get for sites I include on a frame
 
Old 06-01-2007, 08:13 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
what do you mean "in a frame"? again.. what domain names? real ones? if you're talking about iframes and such, then that's quite possibly you declaring frame sources...
 
Old 07-21-2007, 01:41 AM   #7
walidaly
Member
 
Registered: Mar 2007
Posts: 64

Original Poster
Rep: Reputation: 15
yes I think $_SERVER['HTTP_HOST'] is sent to the server from the browser who might mistakenly send it to the original ip not the real owner
 
Old 07-21-2007, 02:08 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
i could only guess that someone out there has hardcoded an incorrect IP address or something.
 
Old 07-21-2007, 02:25 PM   #9
walidaly
Member
 
Registered: Mar 2007
Posts: 64

Original Poster
Rep: Reputation: 15
you mean $_SERVER['HTTP_HOST'] doesn't change?
 
Old 07-21-2007, 03:07 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
i don't mean anything like that, don't know what you really mean by that either.... if you are getting http requests against a server that doesn't contain the domain being requested, then unless you're making a dumb mistake somewhere, then i'd have to conclude that someone else has put your ip in their dns records or something.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sub Domains & Multiple Domains (Apache) lugos Linux - Server 1 09-01-2006 10:22 PM
convert html emails to plain text emails andredude Linux - General 6 03-20-2005 12:33 PM
Sendmail, Adding new emails on different domains on Fedora Core 2 Ampex Linux - Software 0 02-18-2005 03:06 AM
404 page taken over? Keyser Sose Linux - Software 9 01-09-2005 12:26 PM
(404)error johncla Linux - Networking 1 03-25-2001 06:09 PM


All times are GMT -5. The time now is 07:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration