Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-29-2004, 06:21 AM   #1
Member (9 bit)
 
Big Weapons's Avatar
 
Join Date: Jan 2003
Location: Milpitas, CA
Posts: 428
Send a message via ICQ to Big Weapons Send a message via AIM to Big Weapons
HOSTS file and Apache

I surf the internet on a webserver. I have a huge HOSTS file with all these blocked ads. The problem is that the DNS requests bounce back to my computer and Apache recognizes it as someone trying to access a non-existent file. Therefore, I eventually get a huge error file in the Apache logs folder. I'd actually like to use it to troubleshoot issues with my server but it's nearly impossible with all these false errors in the file. Is there a way so that I can redirect all the addresses to say, 128.0.0.1? That way I won't get a huge error log. I'm not sure if that would work, but I need to know. I'm thinking that it might cause some long loading times since the browser will actually be searching for a file in a server that doesn't exist.

Last edited by Big Weapons; 07-29-2004 at 06:23 AM.
Big Weapons is offline   Reply With Quote
Old 07-29-2004, 06:31 AM   #2
Member (9 bit)
 
Big Weapons's Avatar
 
Join Date: Jan 2003
Location: Milpitas, CA
Posts: 428
Send a message via ICQ to Big Weapons Send a message via AIM to Big Weapons
Here an example of what I got just surfing this forum for a minute and a half. It eventually amounts to a HUGE hundred megabyte file that is impossible to sort through.

Code:
[Thu Jul 29 04:22:17 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/dat, referer: http://forum.pcmech.com/showthread.php?t=105399
[Thu Jul 29 04:22:17 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/j.ad, referer: http://forum.pcmech.com/showthread.php?t=105399
[Thu Jul 29 04:22:18 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/dat, referer: http://forum.pcmech.com/forumdisplay.php?f=33
[Thu Jul 29 04:22:18 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/j.ad, referer: http://forum.pcmech.com/forumdisplay.php?f=33
[Thu Jul 29 04:22:18 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/dat, referer: http://forum.pcmech.com/showthread.php?t=105399
[Thu Jul 29 04:22:18 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/j.ad, referer: http://forum.pcmech.com/showthread.php?t=105399
[Thu Jul 29 04:22:20 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/dat, referer: http://forum.pcmech.com/editpost.php?do=editpost&p=749032
[Thu Jul 29 04:22:20 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/j.ad, referer: http://forum.pcmech.com/editpost.php?do=editpost&p=749032
[Thu Jul 29 04:22:30 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/dat, referer: http://forum.pcmech.com/showthread.php?p=749032
[Thu Jul 29 04:22:30 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/j.ad, referer: http://forum.pcmech.com/showthread.php?p=749032
[Thu Jul 29 04:22:56 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/dat, referer: http://forum.pcmech.com/editpost.php?do=editpost&p=749032
[Thu Jul 29 04:22:56 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/j.ad, referer: http://forum.pcmech.com/editpost.php?do=editpost&p=749032
[Thu Jul 29 04:23:46 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/dat, referer: http://forum.pcmech.com/showthread.php?p=749032
[Thu Jul 29 04:23:46 2004] [error] [client 127.0.0.1] File does not exist: C:/Server/www/j.ad, referer: http://forum.pcmech.com/showthread.php?p=749032
Big Weapons is offline   Reply With Quote
Old 07-30-2004, 04:45 AM   #3
Member (9 bit)
 
Big Weapons's Avatar
 
Join Date: Jan 2003
Location: Milpitas, CA
Posts: 428
Send a message via ICQ to Big Weapons Send a message via AIM to Big Weapons
Anyone know?
Big Weapons is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:48 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2