openSUSE Forums > Network/Internet » apache gives http 500 for xml files

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 22-Oct-2009, 13:02
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 4
jschleigh hasn't been rated much yet
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.
Reply With Quote
  #2 (permalink)  
Old 22-Oct-2009, 13:49
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 4
jschleigh hasn't been rated much yet
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...
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2