Todd A. Jacobs wrote:
I found a problem in my apache logs with attempts to view a php script
on my server. The problem appears to be related to URL decoding, as the
page itself is valid.

Apache2 says:

    [Sat Jun 27 04:54:07 2009] [error] File does not exist: 
/srv/web/scripting/showscript.php?script=internet_outtage.sh, referer: 
http://tinyurl.com/p5ywrs

This is perfectly true, as the page is actually
"/srv/web/scripting/showscript.php" and the rest of the URL should be
interpreted as the query.

Firefox says:

    
http://www.codegnome.org/scripting/showscript.php%3Fscript%3Dinternet_outtage.sh
    404 Not Found
    The requested URL /scripting/showscript.php?script=internet_outtage.sh was 
not found on this server.

However, when decoded the url correctly accesses the page at
http://www.codegnome.org/scripting/showscript.php?script=internet_outtage.sh
and displays everything properly.

So, is the problem with Apache or PHP? It looks like *something* is
failing to decode the url before attempting to serve it, but I'm not
sure how to track the problem down further, or how to fix it.


Neither. The webserver is attempting to do exactly what it was told to do. But whomever created the tinyurl did it incorrectly. This one works:

http://tinyurl.com/oovcqy


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to