Hi,<div>I see that nginx as proxy rejects headers with name like &quot;auth.client&quot; or &quot;auth.token&quot; (with dot in their name) and stops parsing further headers. Thus the request to the upstream server doesn&#39;t contain these headers. From the logs, it says &quot;client sent invalid header line&quot;.</div>

<div><br></div><div>Why is having a dot in the header name considered invalid? I searched the relevant RFCs (2616 and 822) and they don&#39;t seem to exclude dot. May I know the reason for nginx to reject headers with dot while other servers like Apache httpd parse headers with dot just fine.</div>

<div><br></div><div>Also, in the nginx source I noticed a undocumented directive &quot;ignore_invalid_headers&quot; which is on by default. It when set to off, makes nginx passes such headers to the upstream server properly. </div>

<div><br></div><div>Is it safe to use this directive? Are there any side-effects, performance issues related to using it?</div><div><br></div><div>Thanks,</div><div>-- <br>Vinay<br></div>