Sometime Internal Server Error with centos 7, nagios ,httpd-2.4.6-67.el7 HTTPS, authentication with LDAPS

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I built a nagios server with httpd-2.4.67.el7 and the following configuration :



1./etc/httpd/conf.d/ssl.conf



SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
SSLCertificateChainFile /etc/httpd/conf/ssl.crt/ca.crt


2./etc/httpd/conf/httpd.conf



LDAPVerifyServerCert off
LDAPTrustedMode SSL
LDAPTrustedGlobalCert CA_DER "/etc/httpd/cert/eCA.cer"
LDAPTrustedGlobalCert CA_DER "/etc/httpd/cert/PublicCA2.cer"


3. /etc/httpd/conf.d/nagios.conf



ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
SSLRequireSSL
Options ExecCGI
AllowOverride AuthConfig
Allow from all
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
SSLRequireSSL
Options None
AllowOverride AuthConfig
Allow from all
</Directory>


4.usr/local/nagios/share/.htaccess & /usr/local/nagios/sbin/



AuthName "LDAPS Login"
AuthType Basic
AuthBasicProvider ldap
AuthLDAPURL "ldaps://ldap3ap.xxx.xxx.xx/o=xxx,c=xx"
AuthLDAPBindDN "uid=nagios,ou=ApUsers,o=xxx,c=xx"
AuthLDAPBindPassword "xxxxxxxxxxxx"
Require ldap-user john mary Z11222 Z19327 Z19328


I usually login to the web and look at my servers's staus, nagios worked well. But the other web test tool shows that sometime it get an internal server error 500 return code. When I look at the ssl_access.log, it also has an error when I access the web, although I didn't feel something was wrong.



/etc/httpd/logs/ssl_access.log



xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:36 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/side.php HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/side.php HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:35 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:36 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:38 +0800] "GET /nagios/ HTTP/1.1" 200 1079


In short, I want to solve the 500 Internal Server Error.







share|improve this question






















  • Anything interesting in /etc/httpd/logs/ssl_error.log for those times?
    – Ulrich Schwarz
    Mar 6 at 6:45














up vote
0
down vote

favorite












I built a nagios server with httpd-2.4.67.el7 and the following configuration :



1./etc/httpd/conf.d/ssl.conf



SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
SSLCertificateChainFile /etc/httpd/conf/ssl.crt/ca.crt


2./etc/httpd/conf/httpd.conf



LDAPVerifyServerCert off
LDAPTrustedMode SSL
LDAPTrustedGlobalCert CA_DER "/etc/httpd/cert/eCA.cer"
LDAPTrustedGlobalCert CA_DER "/etc/httpd/cert/PublicCA2.cer"


3. /etc/httpd/conf.d/nagios.conf



ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
SSLRequireSSL
Options ExecCGI
AllowOverride AuthConfig
Allow from all
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
SSLRequireSSL
Options None
AllowOverride AuthConfig
Allow from all
</Directory>


4.usr/local/nagios/share/.htaccess & /usr/local/nagios/sbin/



AuthName "LDAPS Login"
AuthType Basic
AuthBasicProvider ldap
AuthLDAPURL "ldaps://ldap3ap.xxx.xxx.xx/o=xxx,c=xx"
AuthLDAPBindDN "uid=nagios,ou=ApUsers,o=xxx,c=xx"
AuthLDAPBindPassword "xxxxxxxxxxxx"
Require ldap-user john mary Z11222 Z19327 Z19328


I usually login to the web and look at my servers's staus, nagios worked well. But the other web test tool shows that sometime it get an internal server error 500 return code. When I look at the ssl_access.log, it also has an error when I access the web, although I didn't feel something was wrong.



/etc/httpd/logs/ssl_access.log



xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:36 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/side.php HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/side.php HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:35 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:36 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:38 +0800] "GET /nagios/ HTTP/1.1" 200 1079


In short, I want to solve the 500 Internal Server Error.







share|improve this question






















  • Anything interesting in /etc/httpd/logs/ssl_error.log for those times?
    – Ulrich Schwarz
    Mar 6 at 6:45












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I built a nagios server with httpd-2.4.67.el7 and the following configuration :



1./etc/httpd/conf.d/ssl.conf



SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
SSLCertificateChainFile /etc/httpd/conf/ssl.crt/ca.crt


2./etc/httpd/conf/httpd.conf



LDAPVerifyServerCert off
LDAPTrustedMode SSL
LDAPTrustedGlobalCert CA_DER "/etc/httpd/cert/eCA.cer"
LDAPTrustedGlobalCert CA_DER "/etc/httpd/cert/PublicCA2.cer"


3. /etc/httpd/conf.d/nagios.conf



ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
SSLRequireSSL
Options ExecCGI
AllowOverride AuthConfig
Allow from all
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
SSLRequireSSL
Options None
AllowOverride AuthConfig
Allow from all
</Directory>


4.usr/local/nagios/share/.htaccess & /usr/local/nagios/sbin/



AuthName "LDAPS Login"
AuthType Basic
AuthBasicProvider ldap
AuthLDAPURL "ldaps://ldap3ap.xxx.xxx.xx/o=xxx,c=xx"
AuthLDAPBindDN "uid=nagios,ou=ApUsers,o=xxx,c=xx"
AuthLDAPBindPassword "xxxxxxxxxxxx"
Require ldap-user john mary Z11222 Z19327 Z19328


I usually login to the web and look at my servers's staus, nagios worked well. But the other web test tool shows that sometime it get an internal server error 500 return code. When I look at the ssl_access.log, it also has an error when I access the web, although I didn't feel something was wrong.



/etc/httpd/logs/ssl_access.log



xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:36 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/side.php HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/side.php HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:35 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:36 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:38 +0800] "GET /nagios/ HTTP/1.1" 200 1079


In short, I want to solve the 500 Internal Server Error.







share|improve this question














I built a nagios server with httpd-2.4.67.el7 and the following configuration :



1./etc/httpd/conf.d/ssl.conf



SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
SSLCertificateChainFile /etc/httpd/conf/ssl.crt/ca.crt


2./etc/httpd/conf/httpd.conf



LDAPVerifyServerCert off
LDAPTrustedMode SSL
LDAPTrustedGlobalCert CA_DER "/etc/httpd/cert/eCA.cer"
LDAPTrustedGlobalCert CA_DER "/etc/httpd/cert/PublicCA2.cer"


3. /etc/httpd/conf.d/nagios.conf



ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
SSLRequireSSL
Options ExecCGI
AllowOverride AuthConfig
Allow from all
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
SSLRequireSSL
Options None
AllowOverride AuthConfig
Allow from all
</Directory>


4.usr/local/nagios/share/.htaccess & /usr/local/nagios/sbin/



AuthName "LDAPS Login"
AuthType Basic
AuthBasicProvider ldap
AuthLDAPURL "ldaps://ldap3ap.xxx.xxx.xx/o=xxx,c=xx"
AuthLDAPBindDN "uid=nagios,ou=ApUsers,o=xxx,c=xx"
AuthLDAPBindPassword "xxxxxxxxxxxx"
Require ldap-user john mary Z11222 Z19327 Z19328


I usually login to the web and look at my servers's staus, nagios worked well. But the other web test tool shows that sometime it get an internal server error 500 return code. When I look at the ssl_access.log, it also has an error when I access the web, although I didn't feel something was wrong.



/etc/httpd/logs/ssl_access.log



xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:36 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:01:38 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/side.php HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:32 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:35 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/side.php HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:11:38 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/ HTTP/1.1" 200 1079
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:32 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:35 +0800] "GET /nagios/ HTTP/1.1" 500 527
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:35 +0800] "GET /nagios/side.php HTTP/1.1" 200 4735
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:36 +0800] "GET /nagios/main.php HTTP/1.1" 200 7990
xxx.xxx.xxx.xxx - xxxxx [04/Mar/2018:09:21:38 +0800] "GET /nagios/ HTTP/1.1" 200 1079


In short, I want to solve the 500 Internal Server Error.









share|improve this question













share|improve this question




share|improve this question








edited Mar 6 at 3:26









cas

37.6k44392




37.6k44392










asked Mar 6 at 2:25









Kate Hung

1




1











  • Anything interesting in /etc/httpd/logs/ssl_error.log for those times?
    – Ulrich Schwarz
    Mar 6 at 6:45
















  • Anything interesting in /etc/httpd/logs/ssl_error.log for those times?
    – Ulrich Schwarz
    Mar 6 at 6:45















Anything interesting in /etc/httpd/logs/ssl_error.log for those times?
– Ulrich Schwarz
Mar 6 at 6:45




Anything interesting in /etc/httpd/logs/ssl_error.log for those times?
– Ulrich Schwarz
Mar 6 at 6:45















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428401%2fsometime-internal-server-error-with-centos-7-nagios-httpd-2-4-6-67-el7-https%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428401%2fsometime-internal-server-error-with-centos-7-nagios-httpd-2-4-6-67-el7-https%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay