LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   http returns 500 Internal Server Error but not https (https://www.linuxquestions.org/questions/linux-server-73/http-returns-500-internal-server-error-but-not-https-815719/)

ceci2 06-22-2010 01:08 PM

http returns 500 Internal Server Error but not https
 
I installed an application and when I tried accessing via HTTP it errors out saying

Quote:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
But I can access it via HTTPS!

I know this is a server error...but how do i fix this? Can it be the .htaccess file that comes with it is mis-configured?

thanks.

C

paulsm4 06-22-2010 01:14 PM

Hi -

1. The fact that you can't access it by HTTP (port 80) and you can by HTTPS (port 443) might be completely irrelevant.

2. "500: server error" is *extremely* generic - the underlying problem could be just about *anything*.

3. SUGGESTED STEPS:
a) Identify exactly what "application" is on the link you failed to reach.
Simple HTML files? PHP or ASPX scripts? A Tomcat servlet container? A JBoss application server? Something else entirely? A combination of some or all of the above?

b) Try to see if that "application" has any logs.
Examine them.

c) See if the "container" (for example, Tomcat and/or JBoss) has any logs.
Examine them.

d) Look at your web servers logs (e.g. /var/log/apache)

e) Look at your server logs (e.g. /var/log/messages)

'Hope that helps .. PSM

ceci2 06-22-2010 01:52 PM

hi.

the app is not recording these types of errors.

This is what I see under /var/log/httpd/error_log

[Tue Jun 22 14:37:57 2010] [error] [client xxx.xxx.xxx.xx] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

and from /var/log/messages

Jun 22 10:45:33 servername ntpd[6126]: synchronized to 207.171.30.106, stratum 1

Not sure what this means.

BTW. I am using apache on a redhat linux. No tomcat...

thanks.

smoker 06-22-2010 02:26 PM

The "app" is drupal, and you haven't configured it correctly, or you have changed something. Check all the config files that deal with standard non-https pages and content. It's not an apache server error, it's an error that apache can do nothing about. You get the same thing with misconfigured perl or php scripts.

bathory 06-22-2010 02:32 PM

Hi,

Quote:

Request exceeded the limit of 10 internal redirects due to probable configuration error.
You have a RewriteRule in your http site that produces a loop

Cheers

smoker 06-22-2010 02:37 PM

I suggest reading through this, specifically this bit.

ceci2 06-23-2010 08:04 AM

thanks


All times are GMT -5. The time now is 12:10 AM.