Re: [users@httpd] 500 Internal Server Error pages being rendered as markup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm not understanding what you mean. This was a clean install of apache and after typing make install, I started up this install's apache. I didn't edit the httpd.conf file. All the ErrorDocument lines that are in httpd.conf are example lines that are commented out already. So what is happening is when a user tries to access some cgi script that isn't configured right, this user gets the 500 Internal Server Error page. The problem with this page is that it is displayed as HTML code. There's the additional line of another 500 Internal Server Error occurring when trying to use an ErrorDocument handling the error request. Since I've never, ever configured any kind of customized error documents, I wouldn't even begin to know where all this error document configuration is. I prefer to use apache's default configuration and error pages.

Thanks,

Vincent J.

On Fri, 16 Dec 2005 00:27:22 -0800, Octavian Rasnita <orasnita@xxxxxx> wrote:

Hi,

From: "Vincent Jong" <vjong@xxxxxxxxxxxxxxxxx>

Well, I did a clean install of apache. I didn't change anything, started
up apache without any httpd.conf configuration changes and tried to access http://localhost/cgi-bin/test-cgi. The 500 internal error is displayed as
markup with the added message of:

Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the
request.

Basically the same problem as before.


Have you tried without that ErrorDocument line in httpd.conf?
Does that line run another cgi script?
If yes, has this script right permissions (chmod 755)?

What do you mean when you say that instead of an error it prints an html
response?
Even when Apache prints an error in the header, it also prints a short html
page in the body.

Maybe conf/extra/httpd-multilang-errordoc.conf print a larger html content,
and in that case some browsers will display that html content instead of
creating its own error page based on the error code.

Every response prints a response code. If you say that it prints just an
html page instead of an error, this means that it prints another code than
500. Which is that code?

Try with:

telnet localhost 80
GET http://localhost/cgi-bin/test.cgi HTTP/1.0
<enter><enter>

Teddy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux