414 Request-URI Too Large in Nginx - google-chrome

I have a site running on 192.168.9.51 with nginx.
What happened:
If I entered IP address 192.168.9.51 in the address bar. IP suddenly got multiplied and appended itself in the URL like this
http://192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/192.168.9.51/
Which results in 414 Request-URI Too Large in Nginx
Expected results:
192.168.9.51 should land me on the webpage without the above error.
What should I do to fix this error?
(I'm not sure whether its an nginx problem or a chrome problem)

Related

ssl and chrome: err_ssl_protocol_error from time to time fixed with f5

We're having some issues on some machines related with ssl when connecting to our sites through https. sometimes, some of the users get the err_ssl_protocol_error when they try to load one of the sites. now, the weird thing is that hitting f5 solves the issue and the page that was returning the ssl error gets miraculous loaded. we've already tried most online suggestions (checking date and time, cleaning the browser/ssl cache, etc).
we have changed the ssl certificate recently (a month ago), but the issues have only started now. btw, all our requests go through our firewall (forti adc) which is responsible for enforcing the https to all our clients.
any clues on why we're getting this error?
edit: adding more info
sites are hosted in iis (windows server 2016)
our firewall is running forti adc
the requests go through a load balancer before hitting firewall
the firewall has the wildcard certificate used for ssl (all. sites)
sites are built with aspnet
it only happens on some pcs, and only with chrome (Firefox is working without any problems)
edit 2: More info from wireshark
So, I've used wireshark to capture the traffic and when I get the ERR_SSL_PROTOCOL_ERROR on chrome, I've noticed that wireshark is showing me an alert with a decrypt error in response to the server hello message:
Any clues on what's going on here?
After lots of digging and testing, it seems like there's an issue with openssl and ECDHE algorithms. Changing the algorithm to a non ECDHE seems to have solved the issue for our chrome users...

Set address in /etc/hosts for local php development in Google Chrome

In the past, It was always enough for me to start local development server on address localhost, running on port 8008 - Therefore in browser I could access my development server just by entering localhost:8008 into browser's address bar.
My Goal
I must start my local dev server under the address mysite, port 8008. No exceptions.
What I Tried
In order to do this, I added mysite into my /etc/host file like follows:
127.0.0.1 localhost mysite
Problem
Upon entering mysite:8008 into address bar of every browser I tried (Safari, Firefox) was my dev site is correctly displayed. However I cant get it work on Google Chrome. This is what Google Chrome displays upon entering mysite:8008 into address bar:
This site can’t be reached mysite refused to connect.
Search Google for mysite 8000
ERR_CONNECTION_REFUSED
However localhost:8008 works displays my website correctly. Any ideas?
It is totally wierd, but for some mysterious reason it looks like Chrome cares for ordering in the /etc/hosts file. Problem has been solved by switching order in localhost line of /etc/hosts file to following:
127.0.0.1 mysite localhost

DNS Error but Favicon Loads

Currently migrating a site from a personal VPS to a dedicated server with a new (sub)domain name. There is no DNS entry for the site (and nslookup returns NXDOMAIN), but the favicon is loading - how is that possible?
Chrome's DNS Error:
This site can’t be reached
[hidden]’s server DNS address could not be found.
ERR_NAME_NOT_RESOLVED
nslookup:
** server can't find [hidden]: NXDOMAIN
Any ideas on what is going on?
My guess is that your browser caches favicons on the domain name rather than IP, so it is able to display the icon even though the site has been migrated.

400 Bad Request Nginx Apache

I am running Apache2 server on Raspberry pi 2 running osmc (based on Debian jessie).
I am occasionally getting 400 bad request errors (both with Firefox and Chrome), with Nginx written at the bottom. According to some advices I have found I should edit nginx configuration file so it will be able to take larger header files.
But I don't have Nginx installed at all. Could you please help me figure this out? When I google for answers, all I get is related to Nginx configuration.

Chrome 43 - HTTPS & Wildcard SSL certificate issue

I have a wildcard SSL certificate for a domain and this particular domain is used for a lot of our staging web sites. Therefore whilst we have the wildcard SSL certificate, we don't always setup our staging sites to run over HTTPS because it's not required.
However, ever since Chrome 43 came out at the end of last week (20/05/15), all of our subdomains when viewed in Chrome 43 are being redirected from HTTP to HTTPS. As a result the website does not load because the virtualhost is not setup for SSL and the user receives the message "This webpage is not available".
I realise this error sounds very specific but I can replicate in any Chrome 43 browser on both Mac and PC.
Has anyone come across this issue or know of a fix?