WebHostingAce
Silver Pleskian
Hi,
Where is the nginx '502 bad gateway' location?
502 Bad Gateway
nginx
Thank you.
Where is the nginx '502 bad gateway' location?
502 Bad Gateway
nginx
Thank you.
I do understand the issue caused by Apache restarting when we modify a domain and there is no solution for this when we are using ngnix as a proxy.
Not a problem. Ignore. The interval does not define how long Apache shall wait after a configuration change to load that configuration. It only defines how long Apache shall wait after one restart to do another. The setting is correct, graceful restart is definitely a valid approach to solve the 502 that you are seeing after web server configuration updates.I have set Apache restart interval to 25sec but it seems Apache is restarting immediately producing page below
[Wed Jan 18 06:09:38 2017] [notice] Apache/2.2.15 (Unix) DAV/2 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips Apache mod_fcgid/2.3.9 mod_python/3.3.1 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Wed Jan 18 06:09:38 2017] [notice] caught SIGTERM, shutting down
[Wed Jan 18 06:09:42 2017] [notice] Apache/2.2.15 (Unix) DAV/2 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips Apache mod_fcgid/2.3.9 mod_python/3.3.1 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Wed Jan 18 08:11:13 2017] [notice] Graceful restart requested, doing restart
[Wed Jan 18 08:11:17 2017] [notice] Digest: generating secret for digest authentication ...
[Wed Jan 18 08:11:17 2017] [notice] Digest: done
[Wed Jan 18 08:11:18 2017] [error] python_init: Python version mismatch, expected '2.6.5', found '2.6.6'.
[Wed Jan 18 08:11:18 2017] [error] python_init: Python executable found '/usr/bin/python'.
[Wed Jan 18 08:11:18 2017] [error] python_init: Python path being used '/usr/lib64/python26.zip:/usr/lib64/python2.6/:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload'.
[Wed Jan 18 08:11:18 2017] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Jan 18 08:11:18 2017] [notice] mod_python: using mutex_directory /tmp
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] RSA server certificate wildcard CommonName (CN) `*.domain.tld' does NOT match server name!?
[Wed Jan 18 08:11:18 2017] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed Jan 18 08:11:18 2017] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.9 mod_python/3.3.1 Python/2.6.6 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
/var/log/modsec_audit.log {
daily
rotate 7
missingok
compress
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
/sbin/service httpd reload > /dev/null 2>/dev/null || true
/sbin/service httpd reload > /dev/null 2>/dev/null || true