Sometime Internal Server Error with centos 7, nagios ï¼Âhttpd-2.4.6-67.el7 HTTPS, authentication with LDAPS
Clash 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.
nagios
add a comment |Â
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.
nagios
Anything interesting in/etc/httpd/logs/ssl_error.log
for those times?
â Ulrich Schwarz
Mar 6 at 6:45
add a comment |Â
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.
nagios
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.
nagios
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Anything interesting in
/etc/httpd/logs/ssl_error.log
for those times?â Ulrich Schwarz
Mar 6 at 6:45