Results 1 to 2 of 2

Thread: apache gives http 500 for xml files

  1. #1
    jschleigh NNTP User

    Default apache gives http 500 for xml files

    opensuse 10.3 lamp server

    This gives http 500 status:
    HTML Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    	<title>This Does Not Work</title>
    	<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
    </head>
    <body>
    
    <p>Hello World</p>
    
    </body>
    </html>
    If I remove the first line, the page displays. What can cause something like this?

    I really appreciate any help. I am sure I have something set wrong somewhere, but have not figured it out yet.

  2. #2
    jschleigh NNTP User

    Default Re: apache gives http 500 for xml files

    On further investigation, my problem was not the content, but rather the filename.

    If I name the file test.php.html, it bombs out. But test.html works. Apparently, the file is being processed as a php file.

    Why is Apache executing .php.html files as PHP? - Stack Overflow

    So I just need to figure a better way to configure my php5 apache mod...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •