Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 20th, 2012, 12:55 AM
helenp helenp is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Marbella, Spain
Posts: 383 helenp Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 6 Days 8 h 41 m 34 sec
Reputation Power: 0
Strange error code file does not exists

Hi, been seing several times this in my error log
[Thu Jan 19 16:19:32 2012] [error] [client 176.31.104.41] File does not exist: /home/mysite/public_html/index.php, referer: http://www.marbellasunrentals.com/index.php

I have a rewriterule in my htaccess that tells the server to treat html as php pages.
So I have my index.htm with a link to home that is on all pages, and its called index.htm not index.php
So I dont understand this error, it says index.php does not exists wich is true but the referres is myste/index.php


Also sometimes I see error like this:
[Thu Jan 19 23:34:20 2012] [error] [client 213.205.232.76] File does not exist: /home/mysite/myweb/406.shtml, referer: http://www.google.co.uk/search?q=villas+in+marbella&ie=UTF-8&oe=UTF-8&hl=en-gb&client=safari

Can anybody explain this please.
Thanks

Last edited by helenp : January 20th, 2012 at 11:56 AM.

Reply With Quote
  #2  
Old January 20th, 2012, 01:08 AM
Dmitry Melnik Dmitry Melnik is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 226 Dmitry Melnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 16 h 58 m 19 sec
Reputation Power: 10
Send a message via MSN to Dmitry Melnik
It looks like you have mod_security module which is blocking some requests to index.php (index.html) that is why you receive 406 and 404 errors.

Reply With Quote
  #3  
Old January 20th, 2012, 11:23 AM
helenp helenp is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Marbella, Spain
Posts: 383 helenp Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 6 Days 8 h 41 m 34 sec
Reputation Power: 0
Quote:
Originally Posted by Dmitry Melnik
It looks like you have mod_security module which is blocking some requests to index.php (index.html) that is why you receive 406 and 404 errors.


Thanks, sorry didnt see somebody answer I said bad, I dont have a rewriterul I have an addtype, this is from my .htaccess
AddType application/x-httpd-php5 .htm .html
RewriteEngine On
RewriteCond %{HTTP_HOST} ^marbellasunrentals\.com
RewriteRule (.*) http://www.marbellasunrentals.com/$1 [R=301,L]

As you can see I have all html pages read as .php by the server, however index.php does not exists therefore I dont understand how I can have index.php as a referer.
I enterered index.php and I am refreshed with my 404 error to index.htm and the error in the error log was normal, without any referrer.

How can I check if I have mod securiry blocking?
I only have access to .htaccess

Reply With Quote
  #4  
Old January 20th, 2012, 03:36 PM
helenp helenp is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Marbella, Spain
Posts: 383 helenp Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 6 Days 8 h 41 m 34 sec
Reputation Power: 0
Just spoke to the host and he said yes the 406 error is due to mod_security and that is due to bad referrers......
He found that that ip is on a blicklist, spamhaus I think it was,
so it was blocked....I dont think this is correct as properbly its a adsl provider and just a normal person that found us in google.
Is this a normal practice?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Strange error code file does not exists

Developer Shed Advertisers and Affiliates



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap