406 Not Acceptable because of file name?

Discussion in 'Web Development' started by pu132, Jul 14, 2007.

  1. pu132

    pu132 New Member

    Joined:
    Jul 14, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Okay, so I've tried this on two different servers (on the same host, though). Both use Apache 1.3.34 on Linux with cPanel. First off, I know the name is bad anyway, but I am curious to know the problem here.

    I have an image named "CP BBall Seal.jpg" on the server. Every time I try to access the file I get a 406, using Firefox, IE, and PHP readfile. When I rename the file to "BP BBall Seal.jpg" or "DP BBall Seal.jpg" it works as it should. I also get a 406 if I name the file "CP test.jpg".

    Is there something special about files that start with "CP " in Apache? Or is there some weird setting my host put on the server? Thanks.
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    cp in *nix system is a command, i.e. copy command. That may be a problem, I am not sure though try renaming your file to "MV BBall Seal.jpg". mv is also a command.
     
  3. pu132

    pu132 New Member

    Joined:
    Jul 14, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Interesting idea. But "MV " works just fine.
     
  4. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Hmmm...I tried googling it but didn't find any clue!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice