The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with Apache

Discussion in 'EasyApache' started by Runtime, Aug 3, 2005.

  1. Runtime

    Runtime Member

    Joined:
    Jun 28, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    When I upload file like something.php.something.jpg
    it is handeled by Apache as php, no matter if it is or it is not a jpeg file.

    Correct me if I'm wrong but shouldn't Apache read the last extension of the file,
    instead the first "extension" ?

    I believe this could be fixed with mod_rewrite. Please let me know if you have any ideas or clues how exactly.

    Thank you !
     
    #1 Runtime, Aug 3, 2005
    Last edited: Aug 3, 2005
  2. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    how are u uploading ? using ftp ? php ?
     
  3. Runtime

    Runtime Member

    Joined:
    Jun 28, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Using FTP, using the File Manager and using 3rd party scripts.
    Also I used wget (I like to experiment before posting).
    In other words - I tried several ways to upload with the same result, files are being handeled as .php not as .jpg
     
  4. kaosent

    kaosent Active Member

    Joined:
    Jul 12, 2005
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    What are the handler types defined in httpd.conf (please post them) and are there any applicable overrides in an .htaccess file?

    [this could be fixed with a mod_rewrite, but it would be better to find out why apache is associating something.php* as php, as other issues may exist]
     
Loading...

Share This Page