HTTP Error 414 not showing in Apache2 access log - http

Apache2 does not log 414 Request-URI Too Long in access or error log, why and how to enable it?

Related

nginx and PHP 7 - Error bad gateway 502 on a Raspberry Pi

I'm just testing a Raspberry Pi 3 and nginx / PHP7 / APC-Cache for TYPO3 8, most of the time it works fine, but sometimes I get the error "bad gateway" 502.
Has anyone tips / infos for me? I believe it is the nginx "sites-available" settings or caching.
Error.log
recv() failed (104: Connection reset by peer) while reading response header from upstream

http: TLS handshake error from $ip:$port remote error: bad certificate

I am having k8s cluster on centos7.2 with 1 master and 2 slaves. The cluster is working fine as far as it is serving on port 8080 but when I tries to secure Kube-API server by using certificates, I felt into the above error after restarting the kube-apiserver service and it is continuously writing this error in my log file at /var/log/messages.
kube-apiserver is started as-
KUBE_API_ADDRESS="--bind-address=0.0.0.0"
KUBE_API_PORT="--secure-port=6443"
KUBELET_PORT="--kubelet-port=10250"
KUBE_ETCD_SERVERS="--etcd-servers=http://kube-master:2379"
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"
KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota"
KUBE_ALLOW_PRIV="--allow-privileged=true"
KUBE_API_TLS_CERT_FILE="--tls-cert-file=/home/abc/server.cert"
KUBE_API_TLS_PRIVATE_KEY_FILE="--tls-private-key- file=/home/abc/server.key"
KUBE_API_TOKEN_AUTH_FILE="--token-auth-file=/home/abc/token.csv" </br>
I am accessing API server using kubectl command as
kubectl --v=4 --server="https://$ip:6443" --certificate-authority="./ca.crt" --token="abcdTOKEN1234" get nodes
After that I am getting following error-
2930 helpers.go:153] Connection error: Get https://$ip:6443/api: x509: certificate signed by unknown authority
2930 helpers.go:96] Unable to connect to the server: x509: certificate signed by unknown authority
I performed same steps on ubuntu 14.04 and are working fine. I am not able to figure out where exactly I'm missing. Can anyone knows where I am wrong ? Thanks in advance.

Wordpress: Internal Server Error

I must move my wordpress website from one server to another. There is no way to backup it, so I copied wp-content files and moved to the new server. Also I moved database, so in my new server I have same database, same user, same password, also I changes user and password info in wp-config.php file.
But there is a problem such:
Internal Server Error The server encountered an internal error or
misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the
error occurred and of anything you might have done that may have
caused the error.
More information about this error may be available in the server error
log.
and here is error log:
#Software: Microsoft Internet Information Services 8.0
#Version: 1.0
#Date: 2015-06-24 22:07:41
#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
2015-06-24 22:07:40 W3SVC181 P3NWVPWEB067 50.62.160.227 GET /admin.php - 80 - 193.201.227.78 HTTP/1.0 Opera/9.80+(Windows+NT+6.1;+U;+ru)+Presto/2.8.131+Version/11.10 - - voskevaz.info 404 0 2 1333 179 4843
2015-06-24 22:07:40 W3SVC181 P3NWVPWEB067 50.62.160.227 GET /administrator/index.php - 80 - 193.201.227.78 HTTP/1.0 Opera/9.80+(Windows+NT+6.1;+U;+ru)+Presto/2.8.131+Version/11.10 - - voskevaz.info 404 0 2 1333 193 203
2015-06-24 22:07:43 W3SVC181 P3NWVPWEB067 50.62.160.227 GET /wp-login.php - 80 - 193.201.227.78 HTTP/1.0 Opera/9.80+(Windows+NT+6.1;+U;+ru)+Presto/2.8.131+Version/11.10 - - voskevaz.info 302 0 0 564 182 1250
I really don't know what does it mean and how to fix it.
Thanks
The lack of a 5xx response code in your log file is interesting.
In the log extract you posted above, the last line is a request for /wp-admin.php, and is served with a 302 response code, which means it was redirected somewhere else.
I'm guessing this is happening because you configured the site to only allow users to log in over a secure (HTTPS) connection. So when you visit http://··(your site)··/wp-login.php, you're being redirected to https://··(your site)··/wp-login.php. If the new site doesn't have a proper SSL certificate installed, this will cause an error. (And it looks like your site is logging HTTPS traffic somewhere else.)
To prevent this from happening, edit /wp-config.php and change define('FORCE_SSL_LOGIN', true); to define('FORCE_SSL_LOGIN', false);.

fixing 504 gateway timeout issue nginx unable to load site

I had executed a select query and suddenly after that it start showing gateway timeout 504 error
root#dtest:/etc# service php-fcgi start
its has nginx and php-fcgi
[....] Starting spawn-fcgi:spawn-fcgi: bind failed: Address already in use
failed!

Nginx returns 502 error when php-fpm returns 500

I'm running nginx with php-fpm. Whenever my Symfony app crashes, it returns a 500 error with the debug info and stack traces I need. The problem is Nginx dumps that info and returns a 502 error with no content.
How can I configure nginx to forward along the 500 error and content from php-fpm?
You can use "proxy_intercept_errors on" to transfer error code to client.
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors
If your Symfony app crashes before any content was returned, then there is no content.

Resources