Menu

#86 invalid request 400 (Bad Request)

Bug
closed
nobody
None
5
2019-01-22
2019-01-20
No

I get the following error when I request any page :

[20/Jan/2019:17:41:07][26730.7f8876cc8700][-driver:nssock:0-] Warning: Ns_ParseRequest <> -> ERROR
[20/Jan/2019:17:41:07][26730.7f8876cc8700][-driver:nssock:0-] Warning: invalid request 400 (Bad Request) from peer 127.0.0.1: received TLS handshake on a non-TLS connection

The naviserver version is the latest

Discussion

  • gustafn

    gustafn - 2019-01-20

    This message means, that the server has received a request on a plain TCP connection (via driver nssock), which does not look like a valid HTTP request, but like an attempt to connect to the TCP port via TLS (a https://... request instead of a http://... request) .

    While the driver "nssock" is for plain HTTP connections, the counterpart for HTTPS is nsssl. See [1] for a short description of nsssl. The NaviServer repository on bitbucket contains a larger configuration example for OpenACS.

    -gn
    PS: please note that this does not qulaify as a bug. there is a mailing list naviserver-devel on sourceforge, which is more suitable for usage and porting questions of NaviServer.

    [1] https://naviserver.sourceforge.io/n/nsssl/files/nsssl.html

     
  • Ayman Idries

    Ayman Idries - 2019-01-21

    Thanks for your reply

    I'm sorry for that mistake, could you please delete it from bug listing and I will add it to the mailing list

     
  • gustafn

    gustafn - 2019-01-22
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB