Persistent 500 internal server error despite efforts

6 posts / 0 new
Last post
#1 Fri, 05/31/2019 - 16:30
dman2210

Persistent 500 internal server error despite efforts

It seems that no matter what I change, I keep getting this error, and I don't know how to get to the bottom of it.:

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

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

This is what I see when I try to access any file including simple html files with a browser on my site. It is a sub-server of a main server. so i have a virtual server mainsite.org then test.mainsite.org. Right now I am accessing them by visiting the server Ip followed by the file address. That has worked for me on other sites. No matter what page I visit besides just the ip address, I get that error.

I would post my configuration files, but I am not sure which would be helpful.

Please help

Fri, 05/31/2019 - 16:30
dman2210

I checked all the server logs, and there are no errors on any of them.

Thu, 06/06/2019 - 14:24
andreychek

Howdy,

Anytime there's a 500 Internal Server error, that indicates that there should be a problem logged in one of the Apache error logs in /var/log/virtualmin, or in the system-wide Apache log.

Are those the ones you had looked at?

-Eric

Thu, 06/06/2019 - 17:37 (Reply to #3)
dman2210

Yes. I think it had to do with some of the options in the htaccess file... I got rid of Options -All, but now every page says not found instead of server error. My access log has been showing the requests, but the main system log does not show any errors, neither does the virtual server log. Now the response is:

Not Found

The requested URL /cgi-binindex.cgi was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Thu, 06/06/2019 - 17:38 (Reply to #4)
dman2210

I have looked at both of those. and the ones for my other virtual servers as well.

Thu, 06/06/2019 - 17:45 (Reply to #5)
dman2210

Now that I look more closely at the access logs, it appears that my traffic is being forwarded somewhere else... at least that's what this 302 response means to me:

333.333.333.333 - - [06/Jun/2019:16:30:13 -0600] "GET /cgi-bin/index.cgi HTTP/1.1" 302 241 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"

is my interpretation correct? Where would I see where that is redirecting to?

Topic locked